docstr: Get an icon resource as {channel: array}.  Note that
  the arrays are bottom-up like windows bitmaps and will likely
  need to be flipped or transposed in some way.
docstr_tok: ["Get","an","icon","resource","as","{","channel",":","array","}",".","Note","that","the","arrays","are","bottom-up","like","windows","bitmaps","and","will","likely","need","to","be","flipped","or","transposed","in","some","way","."]
code: def dataforsize(self, size):
      """
      Get an icon resource as {channel: array}.  Note that
      the arrays are bottom-up like windows bitmaps and will likely
      need to be flipped or transposed in some way.
      """
      dct = {}
      for code, reader in self.SIZES[size]:
          desc = self.dct.get(code)
          if desc is not None:
              dct.update(reader(self.fobj, desc, size))
      return dct
  
imports: import io
  import os
  import struct
  import sys
  from .None import Image, ImageFile, PngImagePlugin, features
label_desc: Use image node_id 4 for calling the IcnsFile obj's underlying member method code with example usage: obj.dataforsize(size) and returns: dct