code: def test_ls_shows_pipeline_tracked_outs(tmp_dir, dvc, scm, run_copy):
      from dvc.dvcfile import LOCK_FILE, PROJECT_FILE
  
      tmp_dir.gen("foo", "foo")
      run_copy("foo", "bar", name="copy-foo-bar")
      dvc.scm.add([PROJECT_FILE, LOCK_FILE])
      dvc.scm.commit("add pipeline stage")
  
      files = Repo.ls(os.curdir, dvc_only=True)
      match_files(files, ((("bar",), True),))
  
imports: import os
  import shutil
  import textwrap
  from operator import itemgetter
  import pytest
  from dvc.repo import Repo
  from dvc.scm import CloneError
label_desc: Use image node_id 28 for calling a global function with example usage: test_ls_shows_pipeline_tracked_outs(tmp_dir, dvc, scm, run_copy) without return types