code: def get_onnx_attribute(operation, name, default=None):
      attr = next(
          (x for x in operation.attribute if x.name == name), None
      )
      if attr is None:
          value = default
      else:
          value = helper.get_attribute_value(attr)
          if isinstance(value, bytes):
              value = value.decode()
      return value
  
imports: import numpy
  import onnx
  from onnx import helper, numpy_helper, shape_inference
  from hls4ml.model import ModelGraph
label_desc: Use image node_id 3 for calling a global function with example usage: get_onnx_attribute(operation, name, default) and returns: value