<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_dependencies(node, dag):
 """Checks if the node has dependencies."""

    for downstream_nodes in dag.values():
        if node in downstream_nodes:
            return True
    return False