How to display the OBB of a nrrd file in 3d slicer?

Operating system: mac
Slicer version: 5.2.1
Expected behavior: I have an NRRD file and I can calculate its OBB and RAS diameter using Segment Statistics, but I want to display its bounding box. How can I do that?

See code snippet that you can copy-paste into the Slicer Python console in the script repository.

Thank you so much! Can you give me the code snippet that could display the AABB (axis-aligned bounding box) of the label. Thanks.

The topic of getting axis-aligned bounding boxes is discussed here: