def setup_defaults(self, config):
        """Processed the ``asset_defaults`` section of the machine config
        files.

        """
        default_config_dict = dict()

        if 'asset_defaults' in config and config['asset_defaults']:

            if (self.config_section in config['asset_defaults'] and
                    config['asset_defaults'][self.config_section]):

                this_config = config['asset_defaults'][self.config_section]

                # set the default
                default_config_dict['default'] = this_config.pop('default')

                for default_section_name in this_config:

                    # first get a copy of the default for this section
                    default_config_dict[default_section_name] = (
                        copy.deepcopy(default_config_dict['default']))

                    # then merge in this section's specific settings
                    default_config_dict[default_section_name].update(
                        this_config[default_section_name])

        return default_config_dict
dataset/ETHPy150Open missionpinball/mpf/mpf/system/assets.py/AssetManager.setup_defaults/original