code: def _tf_core_assert_same_structure(
      nest1, nest2, check_types=True, expand_composites=False
  ):
      # Convert to bool explicitly as otherwise pybind will not be able# to handle
      # type mismatch message correctly. See GitHub issue 42329 for details.
      check_types = bool(check_types)
      expand_composites = bool(expand_composites)
      try:
          _pywrap_utils.AssertSameStructure(
              nest1, nest2, check_types, expand_composites
          )
      except (ValueError, TypeError) as e:
          str1 = str(_tf_core_map_structure(lambda _: _DOT, nest1))
          str2 = str(_tf_core_map_structure(lambda _: _DOT, nest2))
          raise type(e)(
              "%s\nEntire first structure:\n%s\nEntire second structure:\n%s"
              % (str(e), str1, str2)
          )
  
imports: import collections
  import enum
  import wrapt
  from tensorflow.python import pywrap_tensorflow
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import _pywrap_utils
  from tensorflow.python.util.compat import collections_abc
  from tensorflow.python.util.custom_nest_protocol import CustomNestProtocol
label_desc: Use image node_id 13 for calling a global function with example usage: _tf_core_assert_same_structure(nest1, nest2, check_types, expand_composites) without return types