code: def _make_events_generator(path):
      """Makes a generator yielding TensorBoard events from files in `path`."""
      return directory_watcher.DirectoryWatcher(
          path,
          event_file_loader.EventFileLoader,
          io_wrapper.IsSummaryEventsFile,
      ).Load()
  
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 1 for calling a global function with example usage: _make_events_generator(path) and returns: directory_watcher