code: def _process_event(event):
      """Parse TensorBoard scalars into a (tag, wall_time, step, scalar) tuple."""
      for value in event.summary.value:
          if not _is_scalar_value(value):
              continue
  
          if value.HasField("tensor"):
              yield (
                  value.tag,
                  event.wall_time,
                  event.step,
                  tensor_util.make_ndarray(value.tensor).item(),
              )
  
imports: import functools
  import inspect
  import itertools
  import json
  import os
  import tempfile
  from typing import Dict
  from absl import flags, logging
  from absl.testing import absltest
  from tensorboard.backend.event_processing import directory_watcher, event_file_loader, io_wrapper
  from tensorboard.summary import v1
  from tensorboard.util import tensor_util
  from flax import io
label_desc: Use image node_id 3 for calling a global function with example usage: _process_event(event) without return types