<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_person_by_nickname(self, nickname):
 """Retrieves a person by nickname"""

        return next((person for person in self.get_all_people()
                     if person.nickname.lower() == nickname.lower()), None)