def has_dependencies(node, dag):
for downstream_nodes in dag.values():<EOL><INDENT>if node in downstream_nodes:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Checks if the node has dependencies.