code: def __init__(self):
      self._context = None
      self.initialized = False
      self.model = None
      self.device = None
  
file_path: serve/examples/nmt_transformer/model_handler_generalized.py
imports: from ts.torch_handler.base_handler import BaseHandler
  from fairseq.models.transformer import TransformerModel
  import torch
  import json
  import os
  import logging
label_desc: Use image node_id 1 to create a new LanguageTranslationHandler object from inherited base classes: BaseHandler with example: obj = LanguageTranslationHandler()