<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def name(self, code):
 """ Return the name of a country, based on the code. If no match is found, returns an empty string. """

        code = self.alpha2(code)
        if code not in self.countries:
            return ""
        return self.translate_pair(code)[1]