<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _parse_record(self, field, boxscore, index):
 """ Parse each team's record. Find the record for both the home and away teams which are listed above the basic boxscore stats tables. Depending on whether or not the advanced stats table is included on the page (generally only for more recent matchups), a blank header is added to the list which should be removed. With all blank headers removed, the home and away team records can be easily parsed by specifying which team is desired. Parameters field : string The name of the attribute to parse. boxscore : PyQuery object A PyQuery object containing all of the HTML data from the boxscore. index : int An int of the index to pull the record from, as specified in the BOXSCORE_ELEMENT_INDEX dictionary. Returns ------- string A string of the team's record in the format 'Team Name (W-L)'. """

        records = boxscore(BOXSCORE_SCHEME[field]).items()
        records = [x.text() for x in records if x.text() != '']
        return records[index]