code: def _update_outputs(json_schema, operator, api_def):
      api_def_out_arg_map = {}
      for out_arg in api_def.out_arg:
          api_def_out_arg_map[out_arg.name] = out_arg
      for output_arg in operator.output_arg:
          if "outputs" not in json_schema:
              json_schema["outputs"] = []
          json_output = {}
          json_output["name"] = output_arg.name
          if output_arg.name in api_def_out_arg_map:
              api_def_out_arg = api_def_out_arg_map[output_arg.name]
              if api_def_out_arg.description:
                  json_output[
                      "description"
                  ] = api_def_out_arg.description
          if output_arg.number_attr:
              json_output["numberAttr"] = output_arg.number_attr
          if output_arg.type:
              json_output["type"] = output_arg.type
          elif output_arg.type_attr:
              json_output["typeAttr"] = output_arg.type_attr
          elif output_arg.type_list_attr:
              json_output["typeListAttr"] = output_arg.type_list_attr
          if output_arg.is_ref:
              json_output["isRef"] = True
          json_schema["outputs"].append(json_output)
  
imports: import json
  import logging
  import os
  import google.protobuf
  from tensorflow.core.framework import api_def_pb2
  from tensorflow.core.framework import op_def_pb2
  from tensorflow.core.framework import types_pb2
label_desc: Use image node_id 19 for calling a global function with example usage: _update_outputs(json_schema, operator, api_def) without return types