class_docstr: Test dataset for validating registry functions that has a different
  type than TestDataset
class_docstr_tok: ["Test","dataset","for","validating","registry","functions","that","has","a","different","type","than","TestDataset"]
code: def __init__(self, samples, batchsize_per_replica=1):
      input_tensors = [sample["input"] for sample in samples]
      target_tensors = [sample["target"] for sample in samples]
      dataset = ListDataset(
          input_tensors, target_tensors, loader=lambda x: x
      )
      super().__init__(
          dataset=dataset,
          batchsize_per_replica=batchsize_per_replica,
          shuffle=False,
          transform=None,
          num_samples=len(samples),
      )
  
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 1 to create a new OtherTestDataset object from inherited base classes: classy_dataset with example: obj = OtherTestDataset(samples, batchsize_per_replica)