docstr: Override the default to ensure when pickling that any new attributes
  introduced are included in the pickled object.
docstr_tok: ["Override","the","default","to","ensure","when","pickling","that","any","new","attributes","introduced","are","included","in","the","pickled","object","."]
code: def __getstate__(self):
      """
      Override the default to ensure when pickling that any new attributes
      introduced are included in the pickled object.
  
      """
      return self.__dict__
  
imports: import collections
  from pathlib import Path
  import numpy
  from PIL import Image
  import shapely.geometry
label_desc: Use image node_id 3 for calling the Img obj's underlying member method code with example usage: obj.__getstate__() and returns: self