def METHOD_NAME(gen_schedule_args):
    with gen_schedule_args as (cli_args, instance):
        runner = CliRunner()
        with mock.patch("dagster._core.instance.DagsterInstance.get") as _instance:
            _instance.return_value = instance
            result = runner.invoke(schedule_list_command, cli_args)
            if result.exception:
                raise result.exception
            assert result.exit_code == 0
            assert (
                result.output
                == "Repository bar\n"
                "**************\n"
                "Schedule: foo_schedule [STOPPED]\n"
                "Cron Schedule: * * * * *\n"
                "**********************************\n"
                "Schedule: union_schedule [STOPPED]\n"
                "Cron Schedule: ['* * * * *', '* * * * *']\n"
            )