macro_rules! cost_inference_function {
    ($name:ident,) => { ... };
    ($name:ident,$fn:expr) => { ... };
}