<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_nationality(self, player_info):
 """ Parse the player's nationality. The player's nationality is denoted by a flag in the information section with a country code for each nation. The country code needs to pulled and then matched to find the player's home country. Once found, the '_nationality' attribute is set for the player. Parameters player_info : PyQuery object A PyQuery object containing the HTML from the player's stats page. """

        for span in player_info('span').items():
            if 'class="f-i' in str(span):
                nationality = span.text()
                nationality = NATIONALITY[nationality]
                setattr(self, '_nationality', nationality)
                break