code: def _is_input_event(event):
      """Checks if event is an Input event."""
      return event.type in [
          metadata_store_pb2.Event.DECLARED_INPUT,
          metadata_store_pb2.Event.INPUT,
      ]
  
imports: import re
  from IPython.display import display_html
  import matplotlib.pyplot
  import networkx
  import pandas
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: _is_input_event(event) and returns: unknown