code: def _get_attribute_tensors_from_graph(
      onnx_model_proto_graph: GraphProto,
  ) -> Iterable[TensorProto]:
      """Create an iterator of tensors from node attributes of an ONNX model graph."""
      for node in onnx_model_proto_graph.node:
          for attribute in node.attribute:
              if attribute.HasField("t"):
                  yield attribute.t
              yield from attribute.tensors
              yield from _recursive_attribute_processor(
                  attribute, _get_attribute_tensors_from_graph
              )
  
imports: import os
  import re
  import sys
  import uuid
  from itertools import chain
  from typing import Callable, Iterable, Optional
  from onnx.onnx_pb import AttributeProto, GraphProto, ModelProto, TensorProto
label_desc: Use image node_id 11 for calling a global function with example usage: _get_attribute_tensors_from_graph(onnx_model_proto_graph) without return types