async def METHOD_NAME(systemState):
    await wrapped(systemState)
    async def resolve():
        sdk = ScryptedStatic()
        sdk.api = api
        sdk.remote = remote
        sdk.systemManager = SystemManager(api, remote.systemState)
        sdk.deviceManager = DeviceManager(
            remote.nativeIds, sdk.systemManager
        )
        sdk.mediaManager = MediaManager(await api.getMediaManager())
        ret.set_result(sdk)
    asyncio.run_coroutine_threadsafe(resolve(), transport.loop)