def load_plugin_settings(self, plugin_id, plugin_pth):
        """ Internal method to load all settings of a plugin, given its plugin
        id and path to the plugin base directory """
        config_file = join(plugin_pth, "config.yaml")
        config = load_yaml_file(config_file)
        # When you don't specify anything in the settings, instead of
        # returning an empty dictionary, pyyaml returns None
        config["settings"] = config["settings"] or []
        config["daytime_settings"] = config["daytime_settings"] or []

        if config["settings"] and len(config["settings"][0]) != 2:
            self.fatal("Invalid plugin configuration, did you miss '!!omap'?")

        settings = collections.OrderedDict([(k, make_setting_from_data(v)) for k, v in config["settings"]])
        self.settings[plugin_id] = settings

        if self.requires_daytime_settings:
            daysettings = collections.OrderedDict(
                [(k, make_daysetting_from_data(v)) for k, v in config["daytime_settings"]]
            )
            self.day_settings[plugin_id] = daysettings
 Internal method to load all settings of a plugin, given its plugin
        id and path to the plugin base directory 
metadrive/render_pipeline/rpcore/pluginbase/manager.py