code: def f1_score(  # type: ignore
      y_true: Dict[
          str,
          List[Union[Tuple[pd.Timestamp, pd.Timestamp], pd.Timestamp]],
      ],
      y_pred: Dict[
          str,
          List[Union[Tuple[pd.Timestamp, pd.Timestamp], pd.Timestamp]],
      ],
      recall_thresh: float = 0.5,
      precision_thresh: float = 0.5,
  ) -> Dict[str, float]:
      ...
  
imports: from typing import Dict, List, Tuple, Union, overload
  import pandas
  from ..aggregator import AndAggregator, OrAggregator
  from ..data import validate_events
label_desc: Use image node_id 14 for calling a global function with example usage: f1_score(y_true, y_pred, recall_thresh, precision_thresh) without return types