code: def get_configs(self):
          
          loadout_config = self.loadout_preset.config.copy()
  
          config_path = None
          if self.agent_preset.config_path is not None:  # Might be none if preset was never saved to disk.
              config_path = os.path.dirname(self.agent_preset.config_path)
          config = self.agent_preset.config.copy()
          config.set_value(BOT_CONFIG_MODULE_HEADER, BOT_NAME_KEY, self.ingame_name)
          config_bundle = BotConfigBundle(config_path, config, os.path.basename(self.agent_preset.config_path))
  
          return self.overall_index, config_bundle, loadout_config
docs: :return: overall index, agent config, loadout config in that order