def METHOD_NAME(self) -> defer.Deferred:
    @defer.inlineCallbacks
    def nonblocking_function() -> Generator["defer.Deferred[object]", object, None]:
        with PreserveLoggingContext():
            yield defer.succeed(None)
    return self._test_run_in_background(nonblocking_function)