def METHOD_NAME():
    @app_commands.command()
    async def cmd(interaction: discord.Interaction, param: app_commands.Transform[str, X]):
        ...
    param = cmd._params['param']
    assert param.autocomplete is not MISSING
    assert getattr(param.autocomplete, '__self__', None) is not None
    assert not getattr(param.autocomplete, 'pass_command_binding', False)