def eval_interval(interval):
kwargs = {<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>}<EOL>for section in interval[<NUM_LIT:1>:]:<EOL><INDENT>name = section.getName()<EOL>if name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += int(section[<NUM_LIT:0>])<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += int(section[<NUM_LIT:0>])<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += int(section[<NUM_LIT:0>])<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += int(section[<NUM_LIT:0>])<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += int(section[<NUM_LIT:0>])<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += int(section[<NUM_LIT:0>])<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += int(section[<NUM_LIT:0>])<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += <NUM_LIT:1000> * int(section[<NUM_LIT:0>])<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>kwargs["<STR_LIT>"] += int(section[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>raise SyntaxError("<STR_LIT>" % (name, section))<EOL><DEDENT><DEDENT>return relativedelta(**kwargs)<EOL>
Evaluate an interval expression