def METHOD_NAME():
    a = ArrayKey("A")
    b = ArrayKey("B")
    null_key = ArrayKey("NULL")
    source_a = ExampleSourceRandomLocation(a)
    source_b = ExampleSourceRandomLocation(b)
    pipeline = (source_a, source_b) + MergeProvider() + CustomRandomLocation(null_key)
    with build(pipeline):
        with pytest.raises(PipelineRequestError):
            batch = pipeline.request_batch(
                BatchRequest(
                    {
                        a: ArraySpec(roi=Roi((0, 0, 0), (200, 20, 20))),
                        b: ArraySpec(roi=Roi((1000, 100, 100), (220, 22, 22))),
                    }
                )
            )