def METHOD_NAME(self) -> defer.Deferred:
    @defer.inlineCallbacks
    def blocking_function() -> Generator["defer.Deferred[object]", object, None]:
        yield Clock(reactor).sleep(0)
    return self._test_run_in_background(blocking_function)