def METHOD_NAME(client: client.Client, run_id: str, watch: bool,
                output_format: str):
    run = client.get_run(run_id)
    output.print_output(
        run,
        output.ModelType.RUN,
        output_format,
    )
    if not watch:
        return
    while True:
        time.sleep(1)
        run_detail = client.get_run(run_id)
        run = run_detail
        if run_detail.state in [
                'SUCCEEDED', 'SKIPPED', 'FAILED', 'CANCELED', 'PAUSED'
        ]:
            click.echo(f'Run is finished with state {run_detail.state}.')
            return