docstr: Setup the model and optimizer which are used in every test method.
  
  TestCase calls functions in this order: setUp() -> testMethod() ->
  tearDown() -> cleanUp()
docstr_tok: ["Setup","the","model","and","optimizer","which","are","used","in","every","test","method",".","TestCase","calls","functions","in","this","order",":","setUp","(",")","-",">","testMethod","(",")","-",">","tearDown","(",")","-",">","cleanUp","(",")"]
code: def setUp(self):
      """Setup the model and optimizer which are used in every test method.
  
      TestCase calls functions in this order: setUp() -> testMethod() ->
      tearDown() -> cleanUp()
      """
      self.data_preprocessor = dict(
          type="DetDataPreprocessor",
          mean=[123.675, 116.28, 103.53],
          std=[58.395, 57.12, 57.375],
          bgr_to_rgb=True,
          pad_size_divisor=32,
      )
      self.multi_data = {
          "inputs": {
              "sup": [torch.randint(0, 256, (3, 224, 224))],
              "unsup_teacher": [
                  torch.randint(0, 256, (3, 400, 600)),
                  torch.randint(0, 256, (3, 600, 400)),
              ],
              "unsup_student": [
                  torch.randint(0, 256, (3, 700, 500)),
                  torch.randint(0, 256, (3, 500, 700)),
              ],
          },
          "data_samples": {
              "sup": [DetDataSample()],
              "unsup_teacher": [DetDataSample(), DetDataSample()],
              "unsup_student": [DetDataSample(), DetDataSample()],
          },
      }
      self.data = {
          "inputs": [torch.randint(0, 256, (3, 224, 224))],
          "data_samples": [DetDataSample()],
      }
  
file_path: mmdetection/tests/test_models/test_data_preprocessors/test_data_preprocessor.py
imports: from unittest import TestCase
  import torch
  from mmengine.logging import MessageHub
  from mmdet.models.data_preprocessors import BatchFixedSizePad, BatchSyncRandomResize, DetDataPreprocessor, MultiBranchDataPreprocessor
  from mmdet.structures import DetDataSample
  from mmdet.testing import demo_mm_inputs
label_desc: Use image node_id 1 for calling the TestMultiBranchDataPreprocessor obj's underlying member method code with example usage: obj.setUp() without return types