code: def _attr_type_to_str(attr_type: int) -> str:
      """Convert AttributeProto type to string.
  
      Args:
          attr_type: AttributeProto type.
  
      Returns:
          String representing the supplied attr_type.
      """
      if attr_type in AttributeProto.AttributeType.values():
          return _ATTRIBUTE_TYPE_TO_STR[attr_type]  # type: ignore[no-any-return]
      return AttributeProto.AttributeType.keys()[0]
  
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 52 for calling a global function with example usage: _attr_type_to_str(attr_type) and returns: AttributeProto, _ATTRIBUTE_TYPE_TO_STR