code: def _is_tensorflow(other, subclass=False):
      """Check if other is an instance or a subclass of a tensorflow tensor."""
      if (
          "tensorflow" in sys.modules
          or "tensorflow-macos" in sys.modules
      ):
          with contextlib.suppress(ImportError):
              from tensorflow import Tensor as tfTensor
              from tensorflow import Variable
  
              check = issubclass if subclass else isinstance
  
              return check(other, (tfTensor, Variable))
      return False
  
file_path: pennylane/pennylane/typing.py
imports: import contextlib
  import sys
  from typing import Union, TypeVar, Tuple
  import numpy
  from autograd.numpy.numpy_boxes import ArrayBox
label_desc: Use image node_id 2 for calling a global function with example usage: _is_tensorflow(other, subclass) and returns: False, check