def create_internal_apirequest(self, **kwargs):
        #kwargs.setdefault('request', MockedRequest)
        kwargs.setdefault('user', self.get_internal_api_user())
        kwargs = self.get_api_request_kwargs(**kwargs)
        api_request = self.internal_apirequest_class(**kwargs)
        if self.global_state is not None:
            api_request.session_state.update(self.global_state)
        return api_request
dataset/ETHPy150Open zbyte64/django-hyperadmin/hyperadmin/endpoints.py/APIRequestBuilder.create_internal_apirequest/original