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.check_keys = (
          "img",
          "gt_bboxes",
          "gt_bboxes_labels",
          "gt_masks",
          "gt_ignore_flags",
          "gt_seg_map",
      )
      self.results_mask = construct_toy_data(poly2mask=True)
      self.results_poly = construct_toy_data(poly2mask=False)
      self.results_mask_boxtype = construct_toy_data(
          poly2mask=True, use_box_type=True
      )
      self.img_border_value = (104, 116, 124)
      self.seg_ignore_label = 255
  
imports: import copy
  import unittest
  import numpy
  from mmdet.datasets.transforms import GeomTransform, Rotate, ShearX, ShearY, TranslateX, TranslateY
  from mmdet.structures.bbox import HorizontalBoxes
  from mmdet.structures.mask import BitmapMasks, PolygonMasks
  from .utils import check_result_same, construct_toy_data
label_desc: Use image node_id 1 for calling the TestShearY obj's underlying member method code with example usage: obj.setUp() without return types