code: def is_torch_tensor(value):
      if hasattr(value, "__class__"):
          for parent in value.__class__.__mro__:
              if parent.__name__ == "Tensor" and str(
                  parent.__module__
              ).endswith("torch"):
                  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 5 for calling a global function with example usage: is_torch_tensor(value) and returns: False, True