datalad.api.create_test_dataset(path=None, *, spec=None, seed=None)

Create test (meta-)dataset.

  • path (str or None, optional) – path/name where to create (if specified, must not exist). [Default: None]

  • spec (str or None, optional) – spec for hierarchy, defined as a min-max (min could be omitted to assume 0) defining how many (random number from min to max) of sub- datasets to generate at any given level of the hierarchy. Each level separated from each other with /. Example: 1-3/-2 would generate from 1 to 3 subdatasets at the top level, and up to two within those at the 2nd level. [Default: None]

  • seed (int or None, optional) – seed for rng. [Default: None]