class_docstr: Setup a sample hierarchy of datasets to be used
class_docstr_tok: ["Setup","a","sample","hierarchy","of","datasets","to","be","used"]
code: def setup_cache(self):
      ds_path = create_test_dataset(
          self.dsname, spec="2/-2/-2", seed=0
      )[0]
      self.log("Setup cache ds path %s. CWD: %s", ds_path, getpwd())
      # Will store into a tarfile since otherwise install -r is way too slow
      # to be invoked for every benchmark
      # Store full path since apparently setup is not ran in that directory
      self.tarfile = op.realpath(SampleSuperDatasetBenchmarks.tarfile)
      with tarfile.open(self.tarfile, "w") as tar:
          # F.CK -- Python tarfile can't later extract those because key dirs are
          # read-only.  For now just a workaround - make it all writeable
          from datalad.utils import rotree
  
          rotree(self.dsname, ro=False, chmod_files=False)
          tar.add(self.dsname, recursive=True)
      rmtree(self.dsname)
  
imports: import os
  import sys
  import tarfile
  import tempfile
  import timeit
  import os.path
  from glob import glob
  from datalad.utils import getpwd, get_tempfile_kwargs, rmtree
  from datalad.api import Dataset, create_test_dataset
label_desc: Use image node_id 1 for calling the SampleSuperDatasetBenchmarks obj's underlying member method code with example usage: obj.setup_cache() without return types