code: def get_static_value(x):
      """A version of tf.get_static_value that returns None on float dtypes.
  
      It returns None on float dtypes in order to avoid breaking gradients.
  
      Args:
        x: a tensor.
  
      Returns:
        Same as `tf.get_static_value`, except that it returns None when `x` has a
        float dtype.
      """
      if isinstance(x, core.Tensor) and (
          x.dtype.is_floating or x.dtype.is_complex
      ):
          return None
      return tensor_util.constant_value(x)
  
imports: import inspect
  import numbers
  import os
  import re
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import flexible_dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.numpy_ops import np_arrays
  from tensorflow.python.ops.numpy_ops import np_dtypes
  from tensorflow.python.types import core
  from tensorflow.python.util import nest
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 30 for calling a global function with example usage: get_static_value(x) and returns: tensor_util, None