def METHOD_NAME(self):
    strides = [8, 16, 32]
    # 0, 1 / 3, 2 / 3
    scales = [2**x for x in [0, 1 / 3, 2 / 3]]
    sizes = [32.0, 64.0, 128.0]
    aspect_ratios = [0.5, 1.0, 2.0]
    image = np.random.uniform(size=(512, 512, 3))
    anchor_generator = cv_layers.AnchorGenerator(
        bounding_box_format="rel_yxyx",
        sizes=sizes,
        aspect_ratios=aspect_ratios,
        scales=scales,
        strides=strides,
        clip_boxes=False,
    )
    boxes = anchor_generator(image=image)
    boxes = np.concatenate(
        [ops.convert_to_numpy(x) for x in list(boxes.values())], axis=0
    )
    self.assertAllLessEqual(boxes, 1.5)
    self.assertAllGreaterEqual(boxes, -0.50)