class_docstr: Base default handler to load torchscript or eager mode [state_dict] models
  Also, provides handle method per torch serve custom model specification
class_docstr_tok: ["Base","default","handler","to","load","torchscript","or","eager","mode","[","state_dict","]","models","Also",",","provides","handle","method","per","torch","serve","custom","model","specification"]
docstr: Loads the PyTorch model and returns the NN model object.
  
  Args:
      model_pt_path (str): denotes the path of the model file.
  
  Returns:
      (NN Model Object) : Loads the model object.
docstr_tok: ["Loads","the","PyTorch","model","and","returns","the","NN","model","object",".","Args",":","model_pt_path","(","str",")",":","denotes","the","path","of","the","model","file",".","Returns",":","(","NN","Model","Object",")",":","Loads","the","model","object","."]
code: def _load_torchscript_model(self, model_pt_path):
      """Loads the PyTorch model and returns the NN model object.
  
      Args:
          model_pt_path (str): denotes the path of the model file.
  
      Returns:
          (NN Model Object) : Loads the model object.
      """
      return torch.jit.load(model_pt_path, map_location=self.device)
  
imports: import abc
  import importlib.util
  import logging
  import os
  import time
  import torch
  from pkg_resources import packaging
  from ts.handler_utils.timer import timed
  from ..utils.util import check_valid_pt2_backend, list_classes_from_module, load_label_mapping
label_desc: Use image node_id 4 for calling the BaseHandler obj's underlying member method code with example usage: obj._load_torchscript_model(model_pt_path) and returns: torch