code: def IsSummaryEventsFile(path):
      """Check whether the path is probably a TF Events file containing Summary.
  
      Args:
        path: A file path to check if it is an event file containing `Summary`
          protos.
  
      Returns:
        If path is formatted like a TensorFlowEventsFile. Dummy files such as
          those created with the '.profile-empty' suffixes and meant to hold
          no `Summary` protos  are treated as `False`. For background, see:
          https://github.com/tensorflow/tensorboard/issues/2084.
      """
      return IsTensorFlowEventsFile(path) and not path.endswith(
          ".profile-empty"
      )
  
file_path: tensorboard/tensorboard/backend/event_processing/io_wrapper.py
imports: import collections
  import os
  import re
  from tensorboard.compat import tf
  from tensorboard.util import io_util
  from tensorboard.util import tb_logging
label_desc: Use image node_id 3 for calling a global function with example usage: IsSummaryEventsFile(path) and returns: unknown