code: def test_parse_spec():
      eq_(_parse_spec("0/3/-1"), [(0, 0), (3, 3), (0, 1)])
      eq_(_parse_spec("4-10"), [(4, 10)])
      eq_(_parse_spec(""), [])
  
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 2 for calling a global function with example usage: test_parse_spec() without return types