code: def box_score(game_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
docs: Gets the box score information for the game with matching id.