code: def test_get_content_info_paths_empty_list(path=None):
      ds = Dataset(path).create()
  
      # Unlike None, passing any empty list as paths to get_content_info() does
      # not report on all content.
      assert_false(ds.repo.get_content_info(paths=[]))
      assert_false(ds.repo.get_content_info(paths=[], ref="HEAD"))
  
      # Add annex content to make sure its not reported.
      (ds.pathobj / "foo").write_text("foo")
      ds.save()
  
      # Same for get_content_annexinfo()...
      assert_false(ds.repo.get_content_annexinfo(paths=[]))
      assert_false(ds.repo.get_content_annexinfo(paths=[], init=None))
      assert_false(ds.repo.get_content_annexinfo(paths=[], ref="HEAD"))
      assert_false(
          ds.repo.get_content_annexinfo(paths=[], ref="HEAD", init=None)
      )
      # ... where whatever was passed for init will be returned as is.
      assert_equal(
          ds.repo.get_content_annexinfo(
              paths=[], ref="HEAD", init={"random": {"entry": "a"}}
          ),
          {"random": {"entry": "a"}},
      )
  
file_path: datalad/datalad/support/tests/test_fileinfo.py
imports: import os.path
  from pathlib import Path
  import datalad.utils
  from datalad.distribution.dataset import Dataset
  from datalad.support.exceptions import NoSuchPathError
  from datalad.support.gitrepo import GitRepo
  from datalad.tests.utils_pytest import assert_dict_equal, assert_equal, assert_false, assert_in, assert_not_in, assert_raises, assert_repo_status, get_annexstatus, get_convoluted_situation, known_failure_githubci_win, on_nfs, on_travis, slow, skip_if, with_tempfile, with_tree
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_content_info_paths_empty_list(path) without return types