class_docstr: Support MMDET object detection models.
  Refer to https://github.com/open-mmlab/mmdetection
code: def get_yolox_layer_ids(self):
      # logic not straight forward, need to print out the model to understand
      name_to_value = {}
      for name, _ in self.named_parameters():
          n = name
          n = n.replace("backbone", "0")
          n = n.replace("neck", "1")
          n = n.replace("bbox_head", "2")
  
          # backbone
          n = n.replace("stem", "0")
  
          # neck
          n = n.replace("reduce_layers", "0")
          n = n.replace("top_down_blocks", "1")
          n = n.replace("downsamples", "2")
          n = n.replace("bottom_up_blocks", "3")
          n = n.replace("out_convs", "4")
  
          n = n.replace("main_conv", "0")
          n = n.replace("short_conv", "1")
          n = n.replace("final_conv", "2")
          n = n.replace("blocks", "3")
  
          # bbox_head
          n = n.replace("multi_level_cls_convs", "0")
          n = n.replace("multi_level_reg_convs", "0")
          n = n.replace("multi_level_conv_cls", "1")
          n = n.replace("multi_level_conv_reg", "1")
          n = n.replace("multi_level_conv_obj", "1")
  
          value = int(
              "".join(c for c in n if c.isdigit()).ljust(8, "0")
          )
          name_to_value[name] = value
  
      values = list(set(name_to_value.values()))
      values.sort(reverse=True)
      value_to_id = dict(zip(values, range(len(values))))
  
      name_to_id = {}
      for n, _ in self.named_parameters():
          name_to_id[n] = value_to_id[name_to_value[n]]
      return name_to_id
  
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 19 for calling the MMDetAutoModelForObjectDetection obj's underlying member method code with example usage: obj.get_yolox_layer_ids() and returns: name_to_id