pub fn define_global_function<M>(name: &str, func: M)where M: Method,
Define a method in the root scope.