How to compute oriented bounding box for a model and display it using annotation ROI?

or how to convert model to segmentation node with python?