class_docstr: Represents a resource stored within a resource fork.
  
  Attributes:
          type: resource type.
          data: resource data.
          id: ID.
          name: resource name.
          attr: attributes.
class_docstr_tok: ["Represents","a","resource","stored","within","a","resource","fork",".","Attributes",":","type",":","resource","type",".","data",":","resource","data",".","id",":","ID",".","name",":","resource","name",".","attr",":","attributes","."]
code: def __init__(
      self,
      resType=None,
      resData=None,
      resID=None,
      resName=None,
      resAttr=None,
  ):
      self.type = resType
      self.data = resData
      self.id = resID
      self.name = resName
      self.attr = resAttr
  
imports: from io import BytesIO
  import struct
  from fontTools.misc import sstruct
  from fontTools.misc.textTools import bytesjoin, tostr
  from collections import OrderedDict
  from collections.abc import MutableMapping
label_desc: Use image node_id 1 to create a new Resource object from inherited base classes: object with example: obj = Resource(resType, resData, resID, resName, resAttr)