def initialize_global_config(global_config):
    """
    You can, of course, preset the engine config before launching the engine.
    """
    assert not engine_initialized(), "Can not call this API after engine initialization!"
    EngineCore.global_config = global_config

    You can, of course, preset the engine config before launching the engine.
    
metadrive/engine/engine_utils.py