code: def serialize(self):
      return dict(
          (k, v)
          for k, v in list(self.__dict__.items())
          if not k.startswith("_")
      )
  
label_desc: Use image node_id 2 for calling the Grid obj's underlying member method code with example usage: obj.serialize() and returns: dict