class_docstr: Interface to write and read from shared memory. Whereas PlasmaArray writes to plasma on serialization,
  PlasmaView writes to shared memory on instantiation.
class_docstr_tok: ["Interface","to","write","and","read","from","shared","memory",".","Whereas","PlasmaArray","writes","to","plasma","on","serialization",",","PlasmaView","writes","to","shared","memory","on","instantiation","."]
docstr: Called on pickle save
docstr_tok: ["Called","on","pickle","save"]
code: def __getstate__(self):
      """Called on pickle save"""
      self.disconnect()
      state = self.__dict__.copy()
      assert state["_client"] is None
      assert "object_id" in state
      return state
  
imports: import hashlib
  import json
  import subprocess
  import tempfile
  from typing import Hashable
label_desc: Use image node_id 5 for calling the PlasmaView obj's underlying member method code with example usage: obj.__getstate__() and returns: state