code: def test_no_interaction_with_untracked_content(path=None):
      # extracted from what was a metadata test originally
      ds = Dataset(op.join(path, "origin")).create(force=True)
      create_tree(ds.path, {"sub": {"subsub": {"dat": "lots of data"}}})
      subds = ds.create("sub", force=True)
      subds.remove(op.join(".datalad", "config"))
      nok_((subds.pathobj / ".datalad" / "config").exists())
      # this will only work, if `remove` didn't do anything stupid and
      # caused all content to be saved
      subds.create("subsub", force=True)
  
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 7 for calling a global function with example usage: test_no_interaction_with_untracked_content(path) without return types