code: def __getstate__(self):
      d = dict(self.__dict__)
      d["_bpk_file"] = None
      d["_model"] = None
      if self.is_owner == "transfer":
          d["is_owner"] = True
      else:
          d["is_owner"] = False
      return d
  
file_path: lkpy/lenskit/sharing/binpickle.py
imports: import os
  import pathlib
  import tempfile
  import logging
  import gc
  import binpickle
  from .None import sharing_mode, PersistedModel
label_desc: Use image node_id 4 for calling the BPKPersisted obj's underlying member method code with example usage: obj.__getstate__() and returns: d