code: def check_scalars(self, scalars, logdir):
      for event_file in os.listdir(logdir):
          path = os.path.join(logdir, event_file)
          event_accumulator = self.reload_events(path)
          # make sure the scalars are in the event accumulator tags
          assert all(
              s in event_accumulator.Tags()["scalars"] for s in scalars
          ), "{} some scalars were not found in the event accumulator"
  
imports: from tensorboard.backend.event_processing import event_accumulator
  from argparse import ArgumentParser
  import os
label_desc: Use image node_id 3 for calling the TestEvents obj's underlying member method code with example usage: obj.check_scalars(scalars, logdir) without return types