You'll probably want to pass the function, order, and match to this, as you would to the ode_hint methods, since the matching would then already be handled.