class_docstr: Helper class to use jax.profiler.StepTraceAnnotation.
  
  This will cause a "name" event to show up on the trace timeline if the
  event occurs while the process is being traced by TensorBoard. In addition,
  if using accelerators, the device trace timeline will also show a "name"
  event. Note that "step_num" can be set as a keyword argument to pass the
  global step number to the profiler. See jax.profiler.StepTraceAnnotation.
class_docstr_tok: ["Helper","class","to","use","jax.profiler.StepTraceAnnotation",".","This","will","cause","a","``","name","''","event","to","show","up","on","the","trace","timeline","if","the","event","occurs","while","the","process","is","being","traced","by","TensorBoard",".","In","addition",",","if","using","accelerators",",","the","device","trace","timeline","will","also","show","a","``","name","''","event",".","Note","that","``","step_num","''","can","be","set","as","a","keyword","argument","to","pass","the","global","step","number","to","the","profiler",".","See","jax.profiler.StepTraceAnnotation","."]
code: def __exit__(self, exc_type, exc_value, tb):
      assert (
          self.context is not None
      ), "Exited context without entering."
      self.context.__exit__(exc_type, exc_value, tb)
      self.context = None
  
imports: from collections import abc
  from concurrent import futures
  import json
  import operator
  import threading
  from typing import Any, Callable, Optional, Sequence, Set, Tuple, Union
  from absl import logging
  from clu import parameter_overview
  import jax
  import jax.numpy
  from jax.tree_util import tree_map
  import ml_collections
label_desc: Use image node_id 3 for calling the StepTraceContextHelper obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, tb) without return types