Axis Remapping for BHI160B on ESP32-S3 (Arduino Library)

Thank you for the Reply

I have drawn based on Required orientation.

The X axis need to be --> Down to Earth as mentioned in picture
The Y axis need to be --> Down to back side as mentioned in picture
The Z axis will -->Down to left side as mentioned in picture

I need as per the picture.