code: def test_contextmanager() -> None:
      watch = StopWatch()
  
      with watch.time("task"):
          assert watch["task"].started()
  
      assert "task" in watch
      assert watch["task"].finished()
  
      assert watch["task"].cpu_duration is not None
      assert watch["task"].wall_duration is not None
  
imports: import time
  from autosklearn.util.stopwatch import StopWatch
label_desc: Use image node_id 2 for calling a global function with example usage: test_contextmanager() without return types