def METHOD_NAME(self, filename, ftype, policy):
    """
    Incorrect type for second argument raise a type error,
    the others cause a param error
    """
    with pytest.raises((e.ParamError, TypeError)):
        self.as_connection.udf_put(filename, ftype, policy)