code: def stop_event(self, name, num_elem):
      if self.timers is None:
          return
      assert name in self.event_counters, f"unknown event {name}"
      self.event_counters[name].increment(num_elem)
      self.timers(name).stop()
  
file_path: DeepSpeed/deepspeed/runtime/zero/partitioned_param_profiler.py
imports: from dataclasses import dataclass
  from deepspeed.utils import log_dist
label_desc: Use image node_id 4 for calling the PartitionedParameterProfiler obj's underlying member method code with example usage: obj.stop_event(name, num_elem) without return types