pub(crate) fn fmt_fn_with_params( path: &str, arg_names: &[String], ret_ty: Option<&str>, ) -> String