docstr: Check if name is already used for graph inputs/outputs or for nodes
  inputs/outputs
docstr_tok: ["Check","if","name","is","already","used","for","graph","inputs\/outputs","or","for","nodes","inputs\/outputs"]
code: def has_edge_name(self, name):  # type: (Text) -> bool
      """
      Check if name is already used for graph inputs/outputs or for nodes
      inputs/outputs
      """
      names = set()
      for input in self.inputs:
          names.add(input[0])
      for output in self.outputs:
          names.add(output[0])
      for node in self.nodes:
          names.update(node.inputs)
          names.update(node.outputs)
      return name in names
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from onnx import numpy_helper, ValueInfoProto, AttributeProto, GraphProto, NodeProto, TensorProto, TensorShapeProto
  from typing import Any, Text, Iterable, List, Dict, Sequence, Optional, Tuple, Union
  from typing_extensions import Protocol
  import numpy
label_desc: Use image node_id 3 for calling the Graph obj's underlying member method code with example usage: obj.has_edge_name(name) and returns: unknown