class_docstr: Support MMDET object detection models.
  Refer to https://github.com/open-mmlab/mmdetection
code: def set_data_preprocessor_device(self):
      if not self.device:
          self.device = next(self.model.parameters()).device
      if self.device != self.data_preprocessor.device:
          self.data_preprocessor.to(self.device)
  
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 5 for calling the MMDetAutoModelForObjectDetection obj's underlying member method code with example usage: obj.set_data_preprocessor_device() without return types