code: def test_info_path_inside_submodule(path=None):
      ds = Dataset(path).create()
      subds = ds.create("submod")
      foo = subds.pathobj / "foo"
      foo.write_text("foo")
      ds.save(recursive=True)
      cinfo = ds.repo.get_content_info(
          ref="HEAD", paths=[foo.relative_to(ds.pathobj)]
      )
      assert_in("gitshasum", cinfo[subds.pathobj])
  
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 6 for calling a global function with example usage: test_info_path_inside_submodule(path) without return types