code: def pack(self, out: IO):
          
          out.write(pack('>H', len(self._table)))
          for attribute in self:
              info = attribute.pack()
              out.write(pack(
                  '>HI',
                  attribute.name.index,
                  len(info)
              ))
              out.write(info)
docs: Write the AttributeTable to the file-like object `out`.
  
          .. note::
  
              Advanced usage only. You will typically never need to call this
              method as it will be called for you when saving a ClassFile.
  
          :param out: Any file-like object providing `write()`