class_docstr: Tracks the average time elapsed over multiple steps.
class_docstr_tok: ["Tracks","the","average","time","elapsed","over","multiple","steps","."]
docstr: Returns a dictionary of reduced times.
code: def summary(self, reduction="mean"):
      """Returns a dictionary of reduced times."""
      time_dict = {
          k: v.reduce(reduction) for k, v in self._meters.items()
      }
      if "total" not in time_dict:
          time_dict["total"] = sum(time_dict.values())
  
      time_dict["steps_per_sec"] = 1.0 / time_dict["total"]
      return time_dict
  
imports: import collections
  from concurrent import futures
  import contextlib
  import functools
  import time
  from typing import List, Union
  import jax
  from jax import tree_util
  import jax.numpy
  import numpy
  from scipy import interpolate
  from scipy.spatial import transform
  import tqdm
label_desc: Use image node_id 7 for calling the TimeTracker obj's underlying member method code with example usage: obj.summary(reduction) and returns: time_dict