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

Please post a link to the exact "Arduino library" you are using.

What you linked is proprietary (not open source) code from Bosch. If that is what you are using, you need to find a description of what it does. Personally, I wouldn't bother with it. A lot of the code from Bosch (which they outsource) is close to worthless.