code: def _maybe_cast_to_list(self, x):
      if isinstance(x, np.ndarray):
          return [item.tolist() for item in x]
      return x
  
file_path: NeMo/nemo/collections/nlp/data/language_modeling/t0_dataset.py
imports: import numpy
  import torch
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
  from nemo.collections.nlp.data.language_modeling.megatron.dataset_utils import get_samples_mapping
  from nemo.collections.nlp.data.language_modeling.text_memmap_dataset import JSONLMemMapDataset, TextMemMapDataset
  from nemo.core.classes import Dataset
label_desc: Use image node_id 6 for calling the T0Dataset obj's underlying member method code with example usage: obj._maybe_cast_to_list(x) and returns: x, unknown