def _custom_formatwarning(
    message: Union[str, Warning],
    category: Type[Warning],
    filename: str,
    lineno: int,
    line: Optional[str] = None,
) -> str:
    """Custom format for warning messages.

    Only the warning message is printed, with additional styling applied.

    Args:
        message:
            The warning message or warning object.
        category:
            The warning class.
        filename:
            The file where the warning originated.
        lineno:
            The line number where the warning occurred.
        line:
            The line of code that triggered the warning (if available).

    Returns:
        str: The formatted warning message.

    """
    return f"{bcolors.WARNING}{message}{bcolors.WARNING}\n"
Custom format for warning messages.

    Only the warning message is printed, with additional styling applied.

    Args:
        message:
            The warning message or warning object.
        category:
            The warning class.
        filename:
            The file where the warning originated.
        lineno:
            The line number where the warning occurred.
        line:
            The line of code that triggered the warning (if available).

    Returns:
        str: The formatted warning message.

    
lightly/utils/hipify.py