code: def is_torch_dataset(dataset):
      if hasattr(dataset, "__class__"):
          for parent in dataset.__class__.__mro__:
              if parent.__name__ == "Dataset" and str(
                  parent.__module__
              ).startswith("torch.utils.data"):
                  return True
      return False
  
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 6 for calling a global function with example usage: is_torch_dataset(dataset) and returns: False, True