def test_f1score(precision_value: float, recall_value: float, true_value: float):
    """
    Test f1 score

    Args:
        precision_value: precision value
        recall_value: recall value
        true_value: true metric value
    """
    f1 = f1score(precision_value=precision_value, recall_value=recall_value)
    assert abs(f1 - true_value) < EPS

    Test f1 score

    Args:
        precision_value: precision value
        recall_value: recall value
        true_value: true metric value
    
tests/catalyst/metrics/functional/test_classification.py