code: def test_create_sub_dataset_dot_no_path(path=None):
      ds = Dataset(path)
      ds.create()
  
      # Test non-bound call.
      sub0_path = str(ds.pathobj / "sub0")
      os.mkdir(sub0_path)
      with chpwd(sub0_path):
          subds0 = create(dataset=".")
      assert_repo_status(ds.path, untracked=[subds0.path])
      assert_repo_status(subds0.path)
  
      # Test command-line invocation directly (regression from gh-3484).
      sub1_path = str(ds.pathobj / "sub1")
      os.mkdir(sub1_path)
      Runner(cwd=sub1_path).run(["datalad", "create", "-d."])
      assert_repo_status(ds.path, untracked=[subds0.path, sub1_path])
  
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 8 for calling a global function with example usage: test_create_sub_dataset_dot_no_path(path) without return types