code: def test_create_test_dataset():
      # rudimentary smoke test
      from datalad.api import create_test_dataset
  
      with swallow_logs(), swallow_outputs():
          dss = create_test_dataset(spec="2/1-2")
      ok_(
          5 <= len(dss) <= 7
      )  # at least five - 1 top, two on top level, 1 in each
      for ds in dss:
          assert_repo_status(
              ds, annex=None
          )  # some of them are annex but we just don't check
          ok_(len(glob(opj(ds, "file*"))))
  
file_path: datalad/datalad/distribution/tests/test_create_test_dataset.py
imports: from glob import glob
  from os.path import join
  from datalad.core.local.repo import repo_from_path
  from datalad.distribution.create_test_dataset import _parse_spec
  from datalad.tests.utils_pytest import assert_raises, assert_repo_status, eq_, ok_, with_tempfile
  from datalad.utils import chpwd, swallow_logs, swallow_outputs
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_test_dataset() without return types