code: def is_pending_output_event(event: metadata_store_pb2.Event) -> bool:
      """Returns true if the event represents a pending (not finalized) output."""
      return event.type == metadata_store_pb2.Event.PENDING_OUTPUT
  
file_path: tfx/tfx/orchestration/portable/mlmd/event_lib.py
imports: import collections
  import contextlib
  from typing import Dict, List, Optional, Sequence, Tuple, TypeVar
  from tfx import types
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 6 for calling a global function with example usage: is_pending_output_event(event) and returns: unknown