class_docstr: Generates unit tests for timing.
class_docstr_tok: ["Generates","unit","tests","for","timing","."]
code: def test(self, key, out_expected):
      print("\nTesting timing of: {}".format(key))
      out = test_timing(key)
      print("expected = {}".format(out_expected))
      print("measured = {}".format(out))
      for k in out.keys():
          self.assertLessEqual(out[k] / out_expected[k], 1.10)
          self.assertLessEqual(out_expected[k] / out[k], 1.10)
  
imports: import datetime
  import json
  import os
  import shutil
  import tempfile
  import unittest
  import pycls.core.builders
  import pycls.core.distributed
  import pycls.core.logging
  import pycls.core.net
  import pycls.core.trainer
  import pycls.models.model_zoo
  from parameterized import parameterized
  from pycls.core.config import cfg, load_cfg, reset_cfg
label_desc: Use image node_id 1 for calling the TestTiming obj's underlying member method code with example usage: obj.test(key, out_expected) without return types