code: def verify_inverse_transform(x, x_inv):
      """
      Verify x is equal to x_inv. The test returns true for NaN.equals(NaN) as it should.
      """
      assert x.equals(x_inv)
  
file_path: category_encoders/tests/helpers.py
imports: import numpy
  import random
  import pandas
  import math
label_desc: Use image node_id 4 for calling a global function with example usage: verify_inverse_transform(x, x_inv) without return types