langchain/callbacks/tracers/stdout.py/ConsoleCallbackHandler/get_parents
class ConsoleCallbackHandler:    def get_parents(self, run: Run) -> List[Run]:
        parents = []
        current_run = run
        while current_run.parent_run_id:
            parent = self.run_map.get(str(current_run.parent_run_id))
            if parent:
                parents.append(parent)
                current_run = parent
            else:
                break
        return parents