<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_result(self, data):
 """Parses the results and returns a Result namedtuple"""

        def valid_score(score):
            return "" if score is None else score

        return self.Result(
            data["homeTeam"]["name"],
            valid_score(data["score"]["fullTime"]["homeTeam"]),
            data["awayTeam"]["name"],
            valid_score(data["score"]["fullTime"]["awayTeam"]))