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.model = ToyModel()
      self.optimizer = optim.SGD(
          self.model.parameters(),
          lr=0.05,
          momentum=0.01,
          weight_decay=5e-4,
      )
  
file_path: mmdetection/tests/test_engine/test_schedulers/test_quadratic_warmup.py
imports: from unittest import TestCase
  import torch
  import torch.nn.functional
  import torch.optim
  from mmengine.optim.scheduler import _ParamScheduler
  from mmengine.testing import assert_allclose
  from mmdet.engine.schedulers import QuadraticWarmupLR, QuadraticWarmupMomentum, QuadraticWarmupParamScheduler
label_desc: Use image node_id 1 for calling the TestQuadraticWarmupScheduler obj's underlying member method code with example usage: obj.setUp() without return types