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, tf.Tensor) and (
          x.dtype.is_floating or x.dtype.is_complex
      ):
          return None
      return tf.get_static_value(x)
  
imports: import funcsigs
  import numpy
  import tensorflow.compat.v2
  from trax.tf_numpy.numpy_impl import arrays
  from trax.tf_numpy.numpy_impl import dtypes
label_desc: Use image node_id 17 for calling a global function with example usage: get_static_value(x) and returns: tf, None