code: def _xdr_read_asset(unpacker):
      
      asset = messages.StellarAssetType(type=unpacker.unpack_uint())
  
      if asset.type == ASSET_TYPE_ALPHA4:
          asset.code = unpacker.unpack_fstring(4)
          asset.issuer = _xdr_read_address(unpacker)
  
      if asset.type == ASSET_TYPE_ALPHA12:
          asset.code = unpacker.unpack_fstring(12)
          asset.issuer = _xdr_read_address(unpacker)
  
      return asset
docs: Reads a stellar Asset from unpacker