code: def _get_variable_for_input(scope, input_name, global_inputs, output_dict):
      '''
      Find the corresponding Variable for a given raw operator (model) name
      The variable is either supplied as graph/global inputs or has been generated as output by previous ops
      :param input_name:
      :param global_inputs:
      :param output_dict:
      :return:
      '''
      if input_name in output_dict:
          value = output_dict[input_name]
          ref_count = value[0]
          variable = value[1]
          output_dict[input_name] = [ref_count+1, variable]
          return variable
  
      matches = [x for x in global_inputs if x.raw_name == input_name]
      if matches:
          return matches[0]
      #
      # create a new Var
      #
      return scope.declare_local_variable(input_namef _get_variable_for_input(scope, input_name, global_inputs, output_dict):
      '''
      Find the corresponding Variable for a given raw operator (model) name
      The variable is either supplied as graph/global inputs or has been generated as output by previous ops
      :param input_name:
      :param global_inputs:
      :param output_dict:
      :return:
      '''
      if input_name in output_dict:
          value = output_dict[input_name]
          ref_count = value[0]
          variable = value[1]
          output_dict[input_name] = [ref_count+1, variable]
          return variable
  
      matches = [x for x in global_inputs if x.raw_name == input_name]
      if matches:
          return matches[0]
      #
      # create a new Var
      #
      return scope.declare_local_variable(input_name)
docs: Find the corresponding Variable for a given raw operator (model) name
      The variable is either supplied as graph/global inputs or has been generated as output by previous ops
      :param input_name:
      :param global_inputs:
      :param output_dict:
      :return: