class_docstr: Wrapper around `DatasetBuilder` code metadata.
  
  Attributes:
    file: Path to dataset file (e.g. `.../image/mnist.py`)
    dir: Path to dataset directory (e.g. `.../image/`)
    dst: New dataset directory `.../image/mnist/`
    name: Dataset name, snake_case (`my_dataset`)
    cls_name: Dataset name, CamelCase (`MyDataset`)
    type: Dataset type (e.g. `image`, `text`, `object_detection`)
class_docstr_tok: ["Wrapper","around","`","DatasetBuilder","`","code","metadata",".","Attributes",":","file",":","Path","to","dataset","file","(","e.g",".","`","...","\/image\/mnist.py","`",")","dir",":","Path","to","dataset","directory","(","e.g",".","`","...","\/image\/","`",")","dst",":","New","dataset","directory","`","...","\/image\/mnist\/","`","name",":","Dataset","name",",","snake_case","(","`","my_dataset","`",")","cls_name",":","Dataset","name",",","CamelCase","(","`","MyDataset","`",")","type",":","Dataset","type","(","e.g",".","`","image","`",",","`","text","`",",","`","object_detection","`",")"]
code: def from_builder_cls(
      cls, builder_cls: Type[tfds.core.DatasetBuilder]
  ) -> "BuilderCodeInfo":
      path = tfds.core.utils.to_write_path(builder_cls.code_path)
      return cls(
          file=path,
          dir=path.parent,
          dst=path.parent / builder_cls.name,
          name=builder_cls.name,
          cls_name=builder_cls.__name__,
          type=path.parent.name,
      )
  
file_path: datasets/tensorflow_datasets/scripts/cleanup/refactor_dataset_as_folder.py
imports: import dataclasses
  import shutil
  from typing import Type
  from absl import app
  from absl import flags
  import tensorflow_datasets
label_desc: Use image node_id 1 for calling the BuilderCodeInfo obj's underlying member method code with example usage: obj.from_builder_cls(cls, builder_cls) and returns: cls