<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_config_files(self, host, hyperparameters, input_data_config):
 """Write the config files for the training containers. This method writes the hyperparameters, resources and input data configuration files. Args: host (str):
 Host to write the configuration for hyperparameters (dict):
 Hyperparameters for training. input_data_config (dict):
 Training input channels to be used for training. Returns: None """

        config_path = os.path.join(self.container_root, host, 'input', 'config')

        resource_config = {
            'current_host': host,
            'hosts': self.hosts
        }

        json_input_data_config = {}
        for c in input_data_config:
            channel_name = c['ChannelName']
            json_input_data_config[channel_name] = {
                'TrainingInputMode': 'File'
            }
            if 'ContentType' in c:
                json_input_data_config[channel_name]['ContentType'] = c['ContentType']

        _write_json_file(os.path.join(config_path, 'hyperparameters.json'), hyperparameters)
        _write_json_file(os.path.join(config_path, 'resourceconfig.json'), resource_config)
        _write_json_file(os.path.join(config_path, 'inputdataconfig.json'), json_input_data_config)