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()
      """
      img_path = osp.join(osp.dirname(__file__), "../../data/gray.jpg")
      self.results = {
          "img_path": img_path,
          "img_shape": (300, 400),
          "instances": [
              {
                  "bbox": [0, 0, 10, 20],
                  "bbox_label": 1,
                  "mask": [[0, 0, 0, 20, 10, 20, 10, 0]],
                  "ignore_flag": 0,
              },
              {
                  "bbox": [10, 10, 110, 120],
                  "bbox_label": 2,
                  "mask": [[10, 10, 110, 10, 110, 120, 110, 10]],
                  "ignore_flag": 0,
              },
              {
                  "bbox": [50, 50, 60, 80],
                  "bbox_label": 2,
                  "mask": [[50, 50, 60, 50, 60, 80, 50, 80]],
                  "ignore_flag": 1,
              },
          ],
      }
  
file_path: mmdetection/tests/test_datasets/test_transforms/test_instaboost.py
imports: import os.path
  import unittest
  import numpy
  from mmdet.registry import TRANSFORMS
  from mmdet.utils import register_all_modules
label_desc: Use image node_id 1 for calling the TestInstaboost obj's underlying member method code with example usage: obj.setUp() without return types