<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def box_score(game_id):
 """Gets the box score information for the game with matching id."""

    # get data
    data = mlbgame.data.get_box_score(game_id)
    # parse data
    parsed = etree.parse(data)
    root = parsed.getroot()
    linescore = root.find('linescore')
    result = dict()
    result['game_id'] = game_id
    # loop through innings and add them to output
    for x in linescore:
        inning = x.attrib['inning']
        home = value_to_int(x.attrib, 'home')
        away = value_to_int(x.attrib, 'away')
        result[int(inning)] = {'home': home, 'away': away}
    return result