<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_moods(self):
 """ Return moods defined on the gateway. Returns a Command. """

        mood_parent = self._get_mood_parent()

        def process_result(result):
            return [self.get_mood(mood, mood_parent=mood_parent) for mood in
                    result]

        return Command('get', [ROOT_MOODS, mood_parent],
                       process_result=process_result)