code: def delete_fakequant_node_and_repair_graph(g, node):
      inputs = node.inputs
      # Delete const inputs of the fakequant op
      for i in inputs:
          if g[i].op == "Const":
              delete_node(g, i)
          else:
              non_const_input = i
      outputs = node.outputs
      # Append FakeQuant Op's outputs to its input node's outputs
      g[non_const_input].outputs = [
          i for i in g[non_const_input].outputs if i != node.name
      ]
      g[non_const_input].outputs.extend(outputs)
      # Modify the FakeQuant op's outputs to set FakeQuant op's parent node as the new input.
      for i in outputs:
          for j in range(len(g[i].inputs)):
              if g[i].inputs[j] == node.name:
                  g[i].inputs[j] = non_const_input
      delete_node(g, node)
  
label_desc: Use image node_id 1 for calling a global function with example usage: delete_fakequant_node_and_repair_graph(g, node) without return types