code: def to_tuple(shape):
      """This functions is here to fix an inconsistency between keras and tf.keras.
  
      In tf.keras, the input_shape argument is an tuple with `Dimensions` objects.
      In keras, the input_shape is a simple tuple of ints or `None`.
  
      We'll work with tuples of ints or `None` to be consistent
      with keras-team/keras. So we must apply this function to
      all input_shapes of the build methods in custom layers.
      """
      return tuple(tf.TensorShape(shape).as_list())
  
imports: from __future__ import absolute_import, division
  from ....None import utils
  from ....imports import *
label_desc: Use image node_id 7 for calling a global function with example usage: to_tuple(shape) and returns: tuple