code: def initialize(self, context):
      properties = context.system_properties
      self.map_location = "cuda" if torch.cuda.is_available() else "cpu"
      self.device = torch.device(
          self.map_location + ":" + str(properties.get("gpu_id"))
          if torch.cuda.is_available()
          else self.map_location
      )
      self.manifest = context.manifest
  
      model_dir = properties.get("model_dir")
      serialized_file = self.manifest["model"]["serializedFile"]
      checkpoint = os.path.join(model_dir, serialized_file)
      self.config_file = os.path.join(model_dir, "config.py")
  
      self.model = init_detector(
          self.config_file, checkpoint, self.device
      )
      self.initialized = True
  
file_path: mmdetection/tools/deployment/mmdet_handler.py
imports: import base64
  import os
  import mmcv
  import numpy
  import torch
  from ts.torch_handler.base_handler import BaseHandler
  from mmdet.apis import inference_detector, init_detector
label_desc: Use image node_id 1 for calling the MMdetHandler obj's underlying member method code with example usage: obj.initialize(context) without return types