def create_config(sections, section_contents):
sections_length, section_contents_length = len(sections), len(section_contents)<EOL>if sections_length != section_contents_length:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>.format(sections_length, section_contents_length))<EOL><DEDENT>config = configparser.ConfigParser()<EOL>for section, section_content in zip(sections, section_contents):<EOL><INDENT>config[section] = section_content<EOL><DEDENT>return config<EOL>
Create a config file from the provided sections and key value pairs.

    Args:
        sections (List[str]): A list of section keys.
        key_value_pairs (Dict[str, str]): A list of of dictionaries. Must be as long as
        the list of sections. That is to say, if there are two sections, there should be two
        dicts.
    Returns:
        configparser.ConfigParser: A ConfigParser.
    Raises:
        ValueError