class_docstr: A constraint based on the L2W language model.
  
  The RNN-based language model from "Learning to Write With
  Cooperative Discriminators" (Holtzman et al, 2018).
  
  https://arxiv.org/pdf/1805.06087.pdf
  
  https://github.com/windweller/l2w
  
   Reused by Jia et al., 2019, as a substitution for the Google
  1-billion words language model (in a revised version the attack of
  Alzantot et al., 2018).
  
  https://worksheets.codalab.org/worksheets/0x79feda5f1998497db75422eca8fcd689
code: def __init__(self, window_size=5, **kwargs):
      self.window_size = window_size
      lm_folder_path = textattack.shared.utils.download_from_s3(
          LearningToWriteLanguageModel.CACHE_PATH
      )
      self.query_handler = QueryHandler.load_model(
          lm_folder_path, textattack.shared.utils.device
      )
      super().__init__(**kwargs)
  
file_path: TextAttack/textattack/constraints/grammaticality/language_models/learning_to_write/learning_to_write.py
imports: import torch
  import textattack
  from textattack.constraints.grammaticality.language_models import LanguageModelConstraint
  from .language_model_helpers import QueryHandler
label_desc: Use image node_id 1 to create a new LearningToWriteLanguageModel object from inherited base classes: LanguageModelConstraint with example: obj = LearningToWriteLanguageModel(window_size)