def METHOD_NAME(base_cls):
    if session._active and base_cls in self.session_inject:
        ret = self.session_inject[base_cls]
        if ret is None:
            raise InjectionError(
                "No instance provided for class: {}".format(base_cls.__name__)
            )
        return ret
    return session._context.injector.inject(base_cls)