code: def inv_transform_ce(x_in, encoding):
      """
      Choose and apply the reversed transformation for the given encoding.
  
      Parameters
      ----------
      x_in : pandas.DataFrame
          Prediction set.
      encoding : list
          A list of category encoder (OrdinalEncoder/OnehotEncoder/BaseNEncoder/BinaryEncoder/TargetEncoder)
          or a list of dict
  
      Returns
      -------
      pandas.Dataframe
          The reversed transformation for the given encoding.
      """
      if str(type(encoding)) == category_encoder_ordinal:
          rst = inv_transform_ordinal(x_in, encoding.mapping)
  
      elif str(type(encoding)) == category_encoder_onehot:
          x = encoding.reverse_dummies(x_in, encoding.mapping)
          rst = inv_transform_ordinal(
              x, encoding.ordinal_encoder.mapping
          )
  
      elif str(type(encoding)) == category_encoder_basen:
          x = reverse_basen(x_in, encoding)
          rst = inv_transform_ordinal(
              x, encoding.ordinal_encoder.mapping
          )
  
      elif str(type(encoding)) == category_encoder_binary:
          if ce.__version__ <= "2.2.2":
              x = reverse_basen(x_in, encoding.base_n_encoder)
              rst = inv_transform_ordinal(
                  x, encoding.base_n_encoder.ordinal_encoder.mapping
              )
          else:
              x = reverse_basen(x_in, encoding)
              rst = inv_transform_ordinal(
                  x, encoding.ordinal_encoder.mapping
              )
  
      elif str(type(encoding)) == category_encoder_targetencoder:
          rst = inv_transform_target(x_in, encoding)
  
      elif str(type(encoding)) == "<class 'list'>":
          rst = inv_transform_ordinal(x_in, encoding)
  
      else:
          raise Exception(
              f"{encoding.__class__.__name__} not supported, no inverse done."
          )
  
      return rst
  
file_path: shapash/shapash/utils/category_encoder_backend.py
imports: import pandas
  import numpy
  import category_encoders
label_desc: Use image node_id 1 for calling a global function with example usage: inv_transform_ce(x_in, encoding) and returns: rst