def METHOD_NAME():
    loop = asyncio.get_event_loop()
    loop.set_default_executor(ImmediateExecutor())
    old_settings = pulumi.runtime.settings.SETTINGS
    try:
        pulumi.runtime.mocks.set_mocks(MyMocks())
        yield resources.define_resources()
    finally:
        pulumi.runtime.settings.configure(old_settings)
        loop.set_default_executor(ThreadPoolExecutor())