code: def __init__(self, tensor: TensorProto) -> None:
      self.location = ""
      self.offset = None
      self.length = None
      self.checksum = None
      self.basepath = ""
  
      for entry in tensor.external_data:
          setattr(self, entry.key, entry.value)
  
      if self.offset:
          self.offset = int(self.offset)
  
      if self.length:
          self.length = int(self.length)
  
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 1 to create a new ExternalDataInfo object  with example: obj = ExternalDataInfo(tensor)