def METHOD_NAME(ctx: click.Context, modified_only: bool) -> bool:
    if modified_only:
        metadata_to_validate = get_expected_metadata_files(ctx.obj["modified_files"])
    else:
        click.secho("Will run metadata validation on all the metadata files found in the repo.")
        metadata_to_validate = get_all_metadata_files()
    click.secho(f"Will validate {len(metadata_to_validate)} metadata files.")
    return anyio.run(
        run_metadata_validation_pipeline,
        ctx.obj["is_local"],
        ctx.obj["git_branch"],
        ctx.obj["git_revision"],
        ctx.obj.get("gha_workflow_run_url"),
        ctx.obj.get("pipeline_start_timestamp"),
        ctx.obj.get("ci_context"),
        metadata_to_validate,
    )