code: def printable_tensor_proto(t: TensorProto) -> str:
      s = f"%{t.name}["
      s += TensorProto.DataType.Name(t.data_type)
      if t.dims is not None:
          if len(t.dims):
              s += str(", " + "x".join(map(str, t.dims)))
          else:
              s += ", scalar"
      s += "]"
      return s
  
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
label_desc: Use image node_id 39 for calling a global function with example usage: printable_tensor_proto(t) and returns: s