code: def setUp(self):
      # Skip tests based on whether we're in flaky test mode and
      # the test is decorated as a flaky test.
      test_method = getattr(self, self._testMethodName)
      is_flaky_test = getattr(test_method, "__caffe2_flaky__", False)
      if is_flaky_test_mode() and not is_flaky_test:
          raise unittest.SkipTest(
              "Non-flaky tests are skipped in flaky test mode"
          )
      elif not is_flaky_test_mode() and is_flaky_test:
          raise unittest.SkipTest(
              "Flaky tests are skipped in regular test mode"
          )
  
      self.ws = workspace.C.Workspace()
      workspace.ResetWorkspace()
  
imports: import numpy
  from caffe2.python import core, workspace
  import os
  import pathlib
  import shutil
  import tempfile
  import unittest
  from typing import Any, Callable, Tuple, Type
  from types import TracebackType
label_desc: Use image node_id 2 for calling the TestCase obj's underlying member method code with example usage: obj.setUp() without return types