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"]
code: def __init__(self):
      self.model = None
      self.mapping = None
      self.device = None
      self.initialized = False
      self.context = None
      self.model_pt_path = None
      self.manifest = None
      self.map_location = None
      self.explain = False
      self.target = 0
      self.profiler_args = {}
  
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 1 to create a new BaseHandler object from inherited base classes: abc with example: obj = BaseHandler()