code: def test_gh2927(path=None, linkpath=None):
      if has_symlink_capability():
          # make it more complicated by default
          Path(linkpath).symlink_to(path, target_is_directory=True)
          path = linkpath
      ds = Dataset(path).create()
      ds.create("subds_clean")
      assert_status(
          "ok",
          ds.create(
              op.join("subds_clean", "subds_lvl1_clean"),
              result_xfm=None,
              return_type="list",
          ),
      )
  
imports: import os
  import os.path
  import pytest
  from datalad.api import create
  from datalad.cmd import WitlessRunner
  from datalad.distribution.dataset import Dataset
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CommandError
  from datalad.tests.utils_pytest import OBSCURE_FILENAME, assert_in, assert_in_results, assert_not_in, assert_raises, assert_repo_status, assert_status, eq_, has_symlink_capability, ok_, ok_exists, swallow_outputs, with_tempfile, with_tree
  from datalad.utils import Path, chpwd
label_desc: Use image node_id 20 for calling a global function with example usage: test_gh2927(path, linkpath) without return types