def METHOD_NAME(self):
    """
    Fails due to probabilities being calculated in advance, rather than after creating
    each roi. The new approach does not account for all possible roi's containing
    each point, some of which may not contain its nearest neighbors.
    """
    GraphKey("TEST_POINTS")
    pipeline = ExampleSourceRandomLocation() + RandomLocation(
        ensure_nonempty=GraphKeys.TEST_POINTS, point_balance_radius=100
    )
    # count the number of times we get each point
    histogram = {}
    with build(pipeline):
        for i in range(5000):
            batch = pipeline.request_batch(
                BatchRequest(
                    {
                        GraphKeys.TEST_POINTS: GraphSpec(
                            roi=Roi((0, 0, 0), (100, 100, 100))
                        )
                    }
                )
            )
            points = {node.id: node for node in batch[GraphKeys.TEST_POINTS].nodes}
            self.assertTrue(len(points) > 0)
            self.assertTrue((1 in points) != (2 in points or 3 in points), points)
            for node in batch[GraphKeys.TEST_POINTS].nodes:
                if node.id not in histogram:
                    histogram[node.id] = 1
                else:
                    histogram[node.id] += 1
    total = sum(histogram.values())
    for k, v in histogram.items():
        histogram[k] = float(v) / total
    # we should get roughly the same count for each point
    for i in histogram.keys():
        for j in histogram.keys():
            self.assertAlmostEqual(histogram[i], histogram[j], 1)