code: def __getstate__(self):
      return {
          "pickle_data": self.pickle_data,
          "blocks": self.blocks,
          "shm_name": self.shm_name,
          "is_owner": True if self.is_owner == "transfer" else False,
      }
  
file_path: lkpy/lenskit/sharing/shm.py
imports: import sys
  import logging
  import pickle
  from .None import sharing_mode, PersistedModel
  import multiprocessing.shared_memory
label_desc: Use image node_id 5 for calling the SHMPersisted obj's underlying member method code with example usage: obj.__getstate__() and returns: dict