code: def testSessionLogSummaries(self):
      data = [
          {
              "session_log": event_pb2.SessionLog(
                  status=event_pb2.SessionLog.START
              ),
              "step": 0,
          },
          {
              "session_log": event_pb2.SessionLog(
                  status=event_pb2.SessionLog.CHECKPOINT
              ),
              "step": 1,
          },
          {
              "session_log": event_pb2.SessionLog(
                  status=event_pb2.SessionLog.CHECKPOINT
              ),
              "step": 2,
          },
          {
              "session_log": event_pb2.SessionLog(
                  status=event_pb2.SessionLog.CHECKPOINT
              ),
              "step": 3,
          },
          {
              "session_log": event_pb2.SessionLog(
                  status=event_pb2.SessionLog.STOP
              ),
              "step": 4,
          },
          {
              "session_log": event_pb2.SessionLog(
                  status=event_pb2.SessionLog.START
              ),
              "step": 5,
          },
          {
              "session_log": event_pb2.SessionLog(
                  status=event_pb2.SessionLog.STOP
              ),
              "step": 6,
          },
      ]
  
      self._WriteScalarSummaries(data)
      units = efi.get_inspection_units(self.logdir)
      self.assertEqual(1, len(units))
      printable = efi.get_dict_to_print(units[0].field_to_obs)
      self.assertEqual(printable["sessionlog:start"]["steps"], [0, 5])
      self.assertEqual(printable["sessionlog:stop"]["steps"], [4, 6])
      self.assertEqual(
          printable["sessionlog:checkpoint"]["num_steps"], 3
      )
  
file_path: tensorboard/tensorboard/backend/event_processing/event_file_inspector_test.py
imports: import os
  import shutil
  import tensorflow
  from tensorboard.backend.event_processing import event_file_inspector
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.util import test_util
label_desc: Use image node_id 9 for calling the EventFileInspectorTest obj's underlying member method code with example usage: obj.testSessionLogSummaries() without return types