code: def creator(
      cls,
      name: str,
      train_files: List[str],
      test_files: Dict[str, List[str]],
      valid: int,
      parse_fn: Callable = core.record_parse,
      nclass: int = 10,
      height: int = 32,
      width: int = 32,
      colors: int = 3,
      cache: bool = False,
  ):
      train_files = [
          os.path.join(core.DATA_DIR, x) for x in train_files
      ]
      test_files = {
          key: [os.path.join(core.DATA_DIR, x) for x in value]
          for key, value in test_files.items()
      }
  
      def create():
          image_shape = height, width, colors
          kw = dict(parse_fn=parse_fn)
          datasets = dict(
              train=core.DataSet.from_files(
                  train_files, image_shape, **kw
              ).skip(valid),
              valid=core.DataSet.from_files(
                  train_files, image_shape, **kw
              ).take(valid),
              test={
                  key: core.DataSet.from_files(value, image_shape, **kw)
                  for key, value in test_files.items()
              },
          )
          if cache:
              cached_datasets = {}
              for key, value in datasets.items():
                  if isinstance(value, dict):
                      cached_datasets[key] = {
                          k: v.cache() for k, v in value.items()
                      }
                  else:
                      cached_datasets[key] = value.cache()
              datasets = cached_datasets
          return cls(name + "-" + str(valid), nclass=nclass, **datasets)
  
      return name + "-" + str(valid), create
  
file_path: objax/examples/fixmatch/libml/data/fsl.py
imports: import itertools
  import os
  from typing import List, Callable, Dict
  import numpy
  from absl import flags
  from examples.fixmatch.libml.data import core
label_desc: Use image node_id 5 for calling the DataSetsLabeled obj's underlying member method code with example usage: obj.creator(cls, name, train_files, test_files, valid, parse_fn, nclass, height, width, colors, cache) and returns: unknown,  create, cls