def METHOD_NAME():
    # This will work since it's a callable
    avg = (lambda x, axis: x)
    assert _check_averaging(avg) is avg
    # fails for bad method
    with pytest.raises(ValueError):
        _check_averaging('bad method')
    # fails for anything else
    with pytest.raises(TypeError):
        _check_averaging(123)