code: def make_attribute_ref(
      name: str,
      attr_type: AttributeProto.AttributeType,
      doc_string: Optional[str] = None,
  ) -> AttributeProto:
      """Make an AttributeProto holding a reference to the parent function's attribute of given name and type."""
      attr = AttributeProto()
      attr.name = name
      attr.type = attr_type
      if doc_string:
          attr.doc_string = doc_string
      return attr
  
imports: import collections.abc
  import numbers
  import struct
  from cmath import isnan
  from typing import Any, Callable, Dict, KeysView, List, Optional, Sequence, Tuple, TypeVar, Union, cast
  import google.protobuf.message
  import numpy
  from onnx import IR_VERSION, AttributeProto, FunctionProto, GraphProto, MapProto, ModelProto, NodeProto, OperatorSetIdProto, OptionalProto, SequenceProto, SparseTensorProto, TensorProto, TensorShapeProto, TrainingInfoProto, TypeProto, ValueInfoProto, defs, mapping, subbyte
label_desc: Use image node_id 23 for calling a global function with example usage: make_attribute_ref(name, attr_type, doc_string) and returns: attr