<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_instances(self):
 """Returns a list of the instances of all the configured nodes. """

        return [c.get('instance') for c in self.runtime._nodes.values()
                if c.get('instance')]