def warning(self, msg, *args, **kwargs):
        """
        Log 'msg % args' with severity 'WARNING'.

        To pass exception information, use the keyword argument exc_info with
        a true value, e.g.

        logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)
        """
        warning_t = kwargs.pop("_type", None)
        if warning_t:
            msg = WarningType2Prefix[warning_t] + msg
        if warning_t in UserFixWarning:
            warnings.warn(msg)
        super(_Logger, self).warning(msg, *args, **kwargs)

        Log 'msg % args' with severity 'WARNING'.

        To pass exception information, use the keyword argument exc_info with
        a true value, e.g.

        logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)
        
intel_extension_for_pytorch/utils/_logger.py