code: def _tf_data_sorted(dict_):
      """Returns a sorted list of the dict keys, with error if keys not sortable."""
      try:
          return sorted(list(dict_))
      except TypeError as e:
          # pylint: disable=raise-missing-from
          raise TypeError(
              f"nest only supports dicts with sortable keys. Error: {e.message}"
          )
  
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 6 for calling a global function with example usage: _tf_data_sorted(dict_) and returns: sorted