code: def _convert_nest_from_shapes(x):
      """Converts a nest of tf.TensorShape to raw tuples of int or None."""
  
      def _shape_as_tuple(x):
          assert isinstance(x, tf.TensorShape)
          return tuple(x.as_list())
  
      return tf.nest.map_structure(_shape_as_tuple, x)
  
imports: import functools
  import json
  from absl import logging
  import tensorflow
  from tensorflow_hub import module_v2
  from tensorflow.python.framework import smart_cond
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 2 for calling a global function with example usage: _convert_nest_from_shapes(x) and returns: tf, tuple