def is_partly_within_image(self, image):
shape = normalize_shape(image)<EOL>height, width = shape[<NUM_LIT:0>:<NUM_LIT:2>]<EOL>eps = np.finfo(np.float32).eps<EOL>img_bb = BoundingBox(x1=<NUM_LIT:0>, x2=width-eps, y1=<NUM_LIT:0>, y2=height-eps)<EOL>return self.intersection(img_bb) is not None<EOL>
Estimate whether the bounding box is at least partially inside the image area.

Parameters
----------
image : (H,W,...) ndarray or tuple of int
    Image dimensions to use.
    If an ndarray, its shape will be used.
    If a tuple, it is assumed to represent the image shape
    and must contain at least two integers.

Returns
-------
bool
    True if the bounding box is at least partially inside the image area. False otherwise.