code: def test_name_starts_with_hyphen(origpath=None, path=None):
      ds = Dataset.create(origpath)
      # create
      dash_sub = ds.create("-sub")
      assert_true(dash_sub.is_installed())
      assert_result_count(
          ds.subdatasets(), 1, path=dash_sub.path, state="present"
      )
  
      # clone
      ds_clone = Dataset.create(path)
      dash_clone = clone(
          source=dash_sub.path, path=os.path.join(path, "-clone")
      )
      ds_clone.save(recursive=True)
      assert_true(dash_clone.is_installed())
      assert_result_count(
          ds_clone.subdatasets(),
          1,
          path=dash_clone.path,
          state="present",
      )
  
      # uninstall
      ds_clone.drop(
          "-clone", what="all", reckless="kill", recursive=True
      )
      assert_false(dash_clone.is_installed())
      assert_result_count(
          ds_clone.subdatasets(),
          1,
          path=dash_clone.path,
          state="absent",
      )
  
      # get
      ds_clone.get("-clone")
      assert_true(dash_clone.is_installed())
      assert_result_count(
          ds_clone.subdatasets(),
          1,
          path=dash_clone.path,
          state="present",
      )
  
      assert_repo_status(ds.path)
  
file_path: datalad/datalad/local/tests/test_subdataset.py
imports: import os
  from os.path import join
  from os.path import pardir, relpath
  from datalad.api import clone, create, subdatasets
  from datalad.distribution.dataset import Dataset
  from datalad.tests.utils_pytest import assert_false, assert_in, assert_not_in, assert_repo_status, assert_result_count, assert_status, assert_true, eq_, slow, with_tempfile
  from datalad.utils import Path, PurePosixPath, chpwd
label_desc: Use image node_id 6 for calling a global function with example usage: test_name_starts_with_hyphen(origpath, path) without return types