code: def __getstate__(self):
      # this function supports pickling, making sure that objects can be pickled
      return dict(
          (k, v)
          for (k, v) in self.__dict__.items()
          if should_pickle(k, v)
          and k
          not in ("optimizer", "encoder", "decoder", "parametric_model")
      )
  
imports: import numpy
  from umap import UMAP
  from warnings import warn, catch_warnings, filterwarnings
  from numba import TypingError
  import os
  from umap.spectral import spectral_layout
  from sklearn.utils import check_random_state
  import codecs, pickle
  from sklearn.neighbors import KDTree
  import sys
label_desc: Use image node_id 9 for calling the ParametricUMAP obj's underlying member method code with example usage: obj.__getstate__() and returns: dict