Unfortunately there are no dedicated libraries available for MCP23017 hall effect sensor.
All information related to I2C interfacing on these modules that's available in public domain can be found at below provided link:
https://www.digi.com/resources/documentation/Digidocs/90002219/#reference/r_class_i2c.htm
Mathur
Digi Technical Support