fn expand_function_with_env(
program: &Program,
function: &FunctionDecl,
function_table: &BTreeMap<String, &MetaFunctionDecl>,
template_env: &BTreeMap<String, MetaValue>,
builder_env_cursor: Option<&mut BuilderEnvCursor>,
) -> Result<FunctionDecl, MetaEvalError>