code: def remove_colormap(self, removal_type):
          
          with _LeptonicaErrorTrap():
              return Pix(
                  lept.pixRemoveColormapGeneral(self._cdata, removal_type, lept.L_COPY)
              )
docs: Remove a palette (colormap); if no colormap, returns a copy of this
          image
  
              removal_type - any of lept.REMOVE_CMAP_*