class_docstr: Test dataset for validating registry functions
class_docstr_tok: ["Test","dataset","for","validating","registry","functions"]
code: def from_config(cls, config, *args, **kwargs):
      return cls(*args, **kwargs)
  
imports: import multiprocessing
  import unittest
  import unittest.mock
  import classy_vision.dataset.classy_dataset
  import torch
  from classy_vision.dataset import build_dataset, register_dataset
  from classy_vision.dataset.core import ListDataset
  from test.generic.utils import compare_batches, compare_samples
  from torch.utils.data import DataLoader
label_desc: Use image node_id 2 for calling the TestDataset obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls