code: def test_new_relpath(topdir=None):
      from datalad.api import create_test_dataset
  
      with swallow_logs(), chpwd(topdir), swallow_outputs():
          dss = create_test_dataset("testds", spec="1")
      eq_(dss[0], opj(topdir, "testds"))
      eq_(len(dss), 2)  # 1 top + 1 sub-dataset as demanded
      for ds in dss:
          assert_repo_status(ds, annex=False)
  
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 5 for calling a global function with example usage: test_new_relpath(topdir) without return types