code: def test_create_force_subds(path=None):
      ds = Dataset(path).create()
      subds = ds.create("subds")
      # We get an error when trying calling create in an existing subdataset
      assert_in_results(
          subds.create(force=False, **raw), status="error"
      )
      # ... but we can force it
      assert_in_results(subds.create(force=True, **raw), status="ok")
      # ... even if it is uninstalled.
      subds.drop(what="all", reckless="kill", recursive=True)
      ok_(not subds.is_installed())
      assert_in_results(subds.create(force=True, **raw), status="ok")
  
imports: import os
  import os.path
  import pytest
  from datalad.api import create
  from datalad.cmd import WitlessRunner
  from datalad.distribution.dataset import Dataset
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CommandError
  from datalad.tests.utils_pytest import OBSCURE_FILENAME, assert_in, assert_in_results, assert_not_in, assert_raises, assert_repo_status, assert_status, eq_, has_symlink_capability, ok_, ok_exists, swallow_outputs, with_tempfile, with_tree
  from datalad.utils import Path, chpwd
label_desc: Use image node_id 2 for calling a global function with example usage: test_create_force_subds(path) without return types