class_docstr: Accumulate stats (from timers) over many iterations
class_docstr_tok: ["Accumulate","stats","(","from","timers",")","over","many","iterations"]
code: def use_cuda_events(self):
      return (
          torch.cuda.is_available()
          and self._cuda_pending_timers is not None
      )
  
imports: import logging
  from collections import defaultdict, deque
  from time import perf_counter
  from typing import List, Mapping, Optional, Tuple
  import torch
  from torch.cuda import Event
label_desc: Use image node_id 5 for calling the PerfStats obj's underlying member method code with example usage: obj.use_cuda_events() and returns: unknown