class_docstr: A grouping of Timers.
code: def record(self, key):
      if self._enabled:
          return self._timers[key]
      else:
          return _nullcontext()
  
imports: import collections
  from contextlib import closing, contextmanager
  import logging
  import numpy
  import socket
  import time
label_desc: Use image node_id 5 for calling the TimerCollection obj's underlying member method code with example usage: obj.record(key) and returns: self, _nullcontext