code: def get_export_outputs(export_outputs, predictions):
      """Validate export_outputs or create default export_outputs.
  
      Args:
        export_outputs: Describes the output signatures to be exported to
          `SavedModel` and used during serving. Should be a dict or None.
        predictions:  Predictions `Tensor` or dict of `Tensor`.
  
      Returns:
        Valid export_outputs dict
  
      Raises:
        TypeError: if export_outputs is not a dict or its values are not
          ExportOutput instances.
      """
      if export_outputs is None:
          default_output = export_output_lib.PredictOutput(predictions)
          export_outputs = {
              signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY: default_output
          }
  
      if not isinstance(export_outputs, dict):
          raise TypeError(
              f"`export_outputs` must be dict, received: {export_outputs}."
          )
      for v in export_outputs.values():
          if not isinstance(v, export_output_lib.ExportOutput):
              raise TypeError(
                  "Values in `export_outputs` must be ExportOutput objects, "
                  f"received: {export_outputs}."
              )
  
      _maybe_add_default_serving_output(export_outputs)
  
      return export_outputs
  
imports: import collections
  import os
  import time
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import op_selector
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import signature_constants
  from tensorflow.python.saved_model import signature_def_utils
  from tensorflow.python.saved_model import tag_constants
  from tensorflow.python.saved_model import utils
  from tensorflow.python.saved_model.model_utils import export_output
  from tensorflow.python.saved_model.model_utils import mode_keys
  from tensorflow.python.saved_model.model_utils.mode_keys import KerasModeKeys
  from tensorflow.python.util import compat
  from tensorflow.python.util import nest
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 8 for calling a global function with example usage: get_export_outputs(export_outputs, predictions) and returns: export_outputs