code: def log_speed(
      key: str,
      value: float,
      priority: int = 30,
      round: Optional[int] = None,
  ):
      """Log the rate of some quantity per second.
  
      Args:
          key (str): name of the field to log
          value (float): value to log
          priority (int): smaller values are logged earlier in the output
          round (Optional[int]): number of digits to round to when displaying
      """
      for agg in get_active_aggregators():
          if key not in agg:
              agg.add_meter(key, TimeMeter(round=round), priority)
              agg[key].reset()  # reset meter on the first call
          else:
              agg[key].update(value)
  
imports: import contextlib
  import uuid
  from collections import defaultdict
  from typing import Callable, List, Optional
  from .meters import *
label_desc: Use image node_id 8 for calling a global function with example usage: log_speed(key, value, priority, round) without return types