code: def is_static(
      tensor_shape: Union[List[Any], Tuple[Any], tf.TensorShape]
  ) -> bool:
      """Checks if the given tensor shape is static."""
      if isinstance(tensor_shape, (list, tuple)):
          return None not in tensor_shape
      else:
          return None not in tensor_shape.as_list()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from typing import Any, List, Optional, Tuple, Union
  import numpy
  import six
  from six.moves import range
  from six.moves import zip
  import tensorflow
label_desc: Use image node_id 16 for calling a global function with example usage: is_static(tensor_shape) and returns: unknown, unknown