docstr: Prevents pickle from serializing encoder and decoder. 
docstr_tok: ["Prevents","pickle","from","serializing","encoder","and","decoder","."]
code: def __getstate__(self):
      """Prevents pickle from serializing encoder and decoder."""
      state = self.__dict__.copy()
      del state["encoder"]
      del state["decoder"]
      del state["optimizer"]
      return state
  
imports: import os
  import pickle
  from typing import Callable, Dict, Union
  import numpy
  import tensorflow
  from headliner.model.basic_model import Encoder, Decoder
  from headliner.model.summarizer import Summarizer
  from headliner.preprocessing.preprocessor import Preprocessor
  from headliner.preprocessing.vectorizer import Vectorizer
label_desc: Use image node_id 3 for calling the BasicSummarizer obj's underlying member method code with example usage: obj.__getstate__() and returns: state