def get_flat_relatives(self, upstream=False):
return list(map(lambda task_id: self._dag.task_dict[task_id],<EOL>self.get_flat_relative_ids(upstream)))<EOL>
Get a flat list of relatives, either upstream or downstream.