def METHOD_NAME(basic_dag: DAG) -> None:
    """Test predecessors."""
    dag = basic_dag
    assert set(dag.predecessors("a")) == set()
    assert set(dag.predecessors("b")) == {"a"}
    assert set(dag.predecessors("c")) == {"a"}
    assert set(dag.predecessors("d")) == {"b", "c"}