code: def test_remove_recreation(path=None):
      # test recreation is possible and doesn't conflict with in-memory
      # remainings of the old instances
      # see issue #1311
      ds = Dataset(path).create()
      ds.remove(reckless="availability")
      ds = Dataset(path).create()
      assert_repo_status(ds.path)
      ok_(ds.is_installed())
  
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 5 for calling a global function with example usage: test_remove_recreation(path) without return types