def METHOD_NAME():
    @op
    def throws_failure():
        raise DagsterTypeCheckDidNotPass(
            description="Always fails.",
            metadata={"always_fails": "why"},
        )
    @job
    def pipe():
        throws_failure()
    with pytest.raises(DagsterTypeCheckDidNotPass) as exc_info:
        pipe.execute_in_process()
    assert exc_info.value.description == "Always fails."
    assert exc_info.value.metadata == {"always_fails": MetadataValue.text("why")}