def METHOD_NAME():
    # This will work since it's a callable
    scorer = (lambda true, pred: np.nan)
    assert _check_scoring(scorer) is scorer
    # fails for bad metric
    with pytest.raises(ValueError):
        _check_scoring('bad metric')
    # fails for anything else
    with pytest.raises(TypeError):
        _check_scoring(123)