class_docstr: An implementation of `<https://arxiv.org/abs/1804.07998>`_ adapted from
  `<https://github.com/nesl/nlp_adversarial_examples>`_.
code: def __getstate__(self):
      state = self.__dict__.copy()
      state["lm_cache"] = self.lm_cache.get_size()
      return state
  
file_path: TextAttack/textattack/constraints/grammaticality/language_models/google_language_model/alzantot_goog_lm.py
imports: import os
  import lru
  import numpy
  from textattack.shared import utils
  from .None import lm_data_utils, lm_utils
label_desc: Use image node_id 5 for calling the GoogLMHelper obj's underlying member method code with example usage: obj.__getstate__() and returns: state