code: def _update_inputs(json_schema, operator, api_def):
      api_def_in_arg_map = {}
      for in_arg in api_def.in_arg:
          api_def_in_arg_map[in_arg.name] = in_arg
      for input_arg in operator.input_arg:
          if "inputs" not in json_schema:
              json_schema["inputs"] = []
          json_input = {}
          json_input["name"] = input_arg.name
          if input_arg.name in api_def_in_arg_map:
              api_def_in_arg = api_def_in_arg_map[input_arg.name]
              if api_def_in_arg.description:
                  json_input["description"] = api_def_in_arg.description
          if input_arg.number_attr:
              json_input["numberAttr"] = input_arg.number_attr
          if input_arg.type:
              json_input["type"] = input_arg.type
          if input_arg.type_attr:
              json_input["typeAttr"] = input_arg.type_attr
          if input_arg.type_list_attr:
              json_input["typeListAttr"] = input_arg.type_list_attr
          if input_arg.is_ref:
              json_input["isRef"] = True
          json_schema["inputs"].append(json_input)
  
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 18 for calling a global function with example usage: _update_inputs(json_schema, operator, api_def) without return types