def get_schema(self, request, **kwargs):
        self.method_check(request, allowed=['get'])
        self.is_authenticated(request)
        self.throttle_check(request)
        self.log_throttled_access(request)
        return self.create_response(request, self.build_schema())
Wrap branches of conditional expressions with lambdas
dataset/ETHPy150Open mozilla/inventory/vendor-local/src/django-tastypie/tastypie/resources.py/Resource.get_schema--crossover with--dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/compiler/passes.py/protect_conditionals