def METHOD_NAME(coefficients_functions):
    """If the given path has wrong dimension, raise error."""
    A, B, C, cnst_F, cnst_g, path, inv_dyn = coefficients_functions
    constraint = toppra.constraint.SecondOrderConstraint(inv_dyn, cnst_F, cnst_g, dof=2)
    path_wrongdim = toppra.SplineInterpolator(np.linspace(0, 1, 5), np.random.randn(5, 10))
    with pytest.raises(ValueError) as e_info:
        constraint.compute_constraint_params(path_wrongdim, np.r_[0, 0.5, 1])
    assert e_info.value.args[0] == "Wrong dimension: constraint dof ({:d}) not equal to path dof ({:d})".format(
        constraint.dof, 10)