code: def _summary_events_file_filter(path_filter=None):
      from tensorboard.backend.event_processing import io_wrapper
  
      def f(path):
          return io_wrapper.IsSummaryEventsFile(path) and (
              not path_filter or path_filter(path)
          )
  
      return f
  
imports: import logging
  import os
  import socket
  import time
  import warnings
  from guild import util
label_desc: Use image node_id 12 for calling a global function with example usage: _summary_events_file_filter(path_filter) and returns: f, unknown