code: def __init__(
      self,
      device="cpu",
      model_type="",
      temperature=1.0,
      top_k=100,
      top_p=0.01,
      batch_size=32,
      optimize=None,
      silence=True,
  ):
      try:
          import torch
      except ModuleNotFoundError:
          raise ModuleNotFoundError(
              "Missed torch library. Install torch by following https://pytorch.org/get-started/locally/`"
          )
  
      # self.device = 'cuda' if device is None and torch.cuda.is_available() else 'cpu'
      self.device = device if device else "cpu"
      self.model_type = model_type
      self.temperature = temperature
      self.top_k = top_k
      self.top_p = top_p
      self.batch_size = batch_size
      self.optimize = self.init_optimize(optimize)
      self.silence = silence
  
imports: import numpy
  import string
  import nlpaug.util.selection.filtering
label_desc: Use image node_id 1 to create a new LanguageModels object  with example: obj = LanguageModels(device, model_type, temperature, top_k, top_p, batch_size, optimize, silence)