code: def yield_sorted_items(modality, iterable):
      if modality == Modality.CORE:
          return _tf_core_yield_sorted_items(iterable)
      else:
          raise ValueError(
              "Unknown modality used {} for nested structure".format(
                  modality
              )
          )
  
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 9 for calling a global function with example usage: yield_sorted_items(modality, iterable) and returns: _tf_core_yield_sorted_items