pub fn init_context() -> Result<()>
Initializes the global context.
This should be called once at the start of the program.