code: def _get_type_spec(dataset):
      """Get the type spec of the dataset."""
      if isinstance(dataset, tuple):
          return tuple
      elif isinstance(dataset, list):
          return list
      elif isinstance(dataset, np.ndarray):
          return np.ndarray
      elif isinstance(dataset, dict):
          return dict
      elif isinstance(dataset, tf.data.Dataset):
          return tf.data.Dataset
      elif is_torch_dataset(dataset):
          from torch.utils.data import Dataset as torchDataset
  
          return torchDataset
      else:
          return None
  
imports: import os
  import random
  import time
  import warnings
  from multiprocessing.pool import ThreadPool
  import numpy
  from keras.api_export import keras_export
  from keras.utils import io_utils
  from keras.utils.module_utils import tensorflow
label_desc: Use image node_id 11 for calling a global function with example usage: _get_type_spec(dataset) and returns: tuple, list, np, dict, tf, torchDataset, None