class_docstr: Support MMDET object detection models.
  Refer to https://github.com/open-mmlab/mmdetection
code: def _reset_classes(self, classes: list):
      temp_ckpt_file = f"temp_ckpt_{int(time.time()*1000)}.pth"
      self._save_weights(temp_ckpt_file)
      self._update_classes(classes)
      self._load_checkpoint()
      os.remove(temp_ckpt_file)
  
imports: import logging
  import os
  import time
  import warnings
  from typing import Optional
  import torch
  from torch import nn
  from ..constants import BBOX, BBOX_FORMATS, COLUMN, IMAGE, IMAGE_VALID_NUM, LABEL, XYXY
  from .utils import freeze_model_layers, lookup_mmdet_config, update_mmdet_config
label_desc: Use image node_id 2 for calling the MMDetAutoModelForObjectDetection obj's underlying member method code with example usage: obj._reset_classes(classes) without return types