def METHOD_NAME(bids_examples: Path) -> None:
    bids_file_path = (
        bids_examples / "asl003" / "sub-Sub1" / "anat" / "sub-Sub1_T1w.nii.gz"
    )
    r = CliRunner().invoke(ls, ["-f", "yaml", str(bids_file_path)])
    assert r.exit_code == 0, r.output
    data = yaml_load(r.stdout, "safe")
    assert len(data) == 1
    assert data[0]["identifier"] == "Sub1"