code: def from_config(cls, config: Dict[str, Any]) -> "MyDataset":
      assert all(
          key in config for key in ["crop_size", "class_ratio", "seed"]
      )
  
      crop_size = config["crop_size"]
      class_ratio = config["class_ratio"]
      seed = config["seed"]
      (
          transform_config,
          batchsize_per_replica,
          shuffle,
          num_samples,
      ) = cls.parse_config(config)
      transform = build_transforms(transform_config)
      return cls(
          batchsize_per_replica,
          shuffle,
          transform,
          num_samples,
          crop_size,
          class_ratio,
          seed,
      )
  
file_path: ClassyVision/classy_vision/templates/synthetic/datasets/my_dataset.py
imports: from typing import Any, Callable, Dict, Optional, Union
  from classy_vision.dataset import ClassyDataset, register_dataset
  from classy_vision.dataset.core.random_image_datasets import RandomImageBinaryClassDataset, SampleType
  from classy_vision.dataset.transforms import build_transforms, ClassyTransform
label_desc: Use image node_id 2 for calling the MyDataset obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls