code: def test_remove_nowhining(path=None):
      # when removing a dataset under a dataset (but not a subdataset)
      # should not provide a meaningless message that something was not right
      ds = Dataset(path).create()
      # just install/clone inside of it
      subds_path = ds.pathobj / "subds"
      clone(path=subds_path, source=path)
      remove(dataset=subds_path)
  
file_path: datalad/datalad/local/tests/test_remove.py
imports: import os.path
  from datalad.api import clone, remove
  from datalad.distribution.dataset import Dataset
  from datalad.tests.utils_pytest import assert_in, assert_in_results, assert_not_in, assert_not_in_results, assert_raises, assert_repo_status, assert_result_count, assert_status, chpwd, create_tree, eq_, get_deeply_nested_structure, nok_, ok_, with_tempfile, with_tree
label_desc: Use image node_id 4 for calling a global function with example usage: test_remove_nowhining(path) without return types