code: def from_onnx(node):  # type: (NodeProto) -> Node
      attrs = Attributes.from_onnx(node.attribute)
      name = Text(node.name)
      if len(name) == 0:
          name = "_".join(node.output)
      return Node(
          name, node.op_type, attrs, list(node.input), list(node.output)
      )
  
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 5 for calling the Node obj's underlying member method code with example usage: obj.from_onnx(node) and returns: Node