code: def get_pending_transfer_pairs(
          transfers_pair: List[MediationPairState],
  ) -> List[MediationPairState]:
      
      pending_pairs = list(
          pair
          for pair in transfers_pair
          if pair.payee_state not in STATE_TRANSFER_FINAL or
          pair.payer_state not in STATE_TRANSFER_FINAL
      )
      return pending_pairs
docs: Return the transfer pairs that are not at a final state.