def write_comb_potential(parameters):
lines = []<EOL>for (e1, e2, e3), params in parameters.items():<EOL><INDENT>if len(params) != <NUM_LIT>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>lines.append('<STR_LIT:U+0020>'.join([e1, e2, e3] + ['<STR_LIT>'.format(_) for _ in params]))<EOL><DEDENT>return '<STR_LIT:\n>'.join(lines)<EOL>
Write comb potential file from parameters

    Parameters
    ----------
    parameters: dict
           keys are tuple of elements with the values being the parameters length 46