def METHOD_NAME(self, image_shape):
    strides = [2**i for i in range(3, 8)]
    scales = [2**x for x in [0, 1 / 3, 2 / 3]]
    sizes = [x**2 for x in [32.0, 64.0, 128.0, 256.0, 512.0]]
    aspect_ratios = [0.5, 1.0, 2.0]
    anchor_generator = cv_layers.AnchorGenerator(
        bounding_box_format="yxyx",
        sizes=sizes,
        aspect_ratios=aspect_ratios,
        scales=scales,
        strides=strides,
    )
    boxes = anchor_generator(image_shape=image_shape)
    boxes = ops.concatenate(list(boxes.values()), axis=0)
    expected_box_shapes = ops.cast(
        ops.ceil(image_shape[0] / ops.array(strides))
        * ops.ceil(image_shape[1] / ops.array(strides))
        * len(scales)
        * len(aspect_ratios),
        "int32",
    )
    sum_expected_shape = (ops.sum(expected_box_shapes), 4)
    self.assertEqual(boxes.shape, sum_expected_shape)