check_compatible

check_compatible(
    upstream,
    downstream_n_items=None,
    downstream_sample_n=None,
    downstream_sample_seed=None,
)

Check if an upstream artifact is compatible with the current pipeline.

Returns (ok, warnings).