class_docstr: Create test (meta-)dataset.
      
class_docstr_tok: ["Create","test","(","meta-",")","dataset","."]
code: def __call__(path=None, *, spec=None, seed=None):
      levels = _parse_spec(spec)
  
      if seed is not None:
          # TODO: if to be used within a bigger project we shouldn't seed main RNG
          random.seed(seed)
      if path is None:
          kw = get_tempfile_kwargs({}, prefix="ds")
          path = tempfile.mkdtemp(**kw)
      else:
          # so we don't override anything
          assert not exists(path)
          os.makedirs(path)
  
      # now we should just make it happen and return list of all the datasets
      return list(_makeds(path, levels))
  
file_path: datalad/datalad/distribution/create_test_dataset.py
imports: import random
  import logging
  import tempfile
  from datalad.utils import get_tempfile_kwargs
  import os
  from os.path import join, exists, isabs, abspath
  from datalad.distribution.dataset import Dataset
  from datalad.support.param import Parameter
  from datalad.support.constraints import EnsureStr, EnsureNone, EnsureInt
  from datalad.support.gitrepo import GitRepo
  from datalad.support.annexrepo import AnnexRepo
  from datalad.interface.base import Interface
  from datalad.interface.base import build_doc
label_desc: Use image node_id 1 for calling the CreateTestDataset obj's underlying member method code with example usage: obj.__call__(path) and returns: list