code: def test_kill(path=None):
      # create a complicated and dirty mess
      ds = get_deeply_nested_structure(path)
      # cannot use kill without recursion enabled, because there will be no
      # checks for subdatasets, hence we cannot make the impression that
      # this would be a surgical operation
      assert_raises(ValueError, ds.drop, what="all", reckless="kill")
      # wipe it out
      res = ds.drop(what="all", reckless="kill", recursive=True)
      assert_result_count(res, 1)
      assert_in_results(
          res,
          status="ok",
          path=ds.path,
          type="dataset",
          action="uninstall",
      )
      eq_(False, ds.is_installed())
      eq_(False, ds.pathobj.exists())
  
imports: import os
  import os.path
  from pathlib import Path
  from unittest.mock import patch
  from datalad.api import Dataset, clone, create, drop
  from datalad.distributed.drop import _detect_nondead_annex_at_remotes, _detect_unpushed_revs
  from datalad.support.exceptions import IncompleteResultsError, NoDatasetFound
  from datalad.support.gitrepo import GitRepo
  from datalad.tests.utils_pytest import DEFAULT_BRANCH, DEFAULT_REMOTE, OBSCURE_FILENAME, assert_in, assert_in_results, assert_raises, assert_repo_status, assert_result_count, assert_status, eq_, get_deeply_nested_structure, known_failure_githubci_win, nok_, ok_, with_tempfile
  from datalad.utils import chpwd
label_desc: Use image node_id 7 for calling a global function with example usage: test_kill(path) without return types