code: def is_tf_tensor(x):
      """
      Tests if `x` is a tensorflow tensor or not. Safe to call even if tensorflow is not installed.
      """
      return False if not is_tf_available() else _is_tensorflow(x)
  
imports: import inspect
  import tempfile
  from collections import OrderedDict, UserDict
  from collections.abc import MutableMapping
  from contextlib import ExitStack, contextmanager
  from dataclasses import fields
  from enum import Enum
  from typing import Any, ContextManager, List, Tuple
  import numpy
  from .import_utils import is_flax_available, is_tf_available, is_torch_available, is_torch_fx_proxy
label_desc: Use image node_id 9 for calling a global function with example usage: is_tf_tensor(x) and returns: unknown