def METHOD_NAME(value: str) -> Any:
    """Converts a string to a bool or returns the value itself if not string
    Parameters
    ----------
    value: str
        The string to be converted or the value itself if not string
    Returns
    -------
    Any
        The converted value
    """
    if isinstance(value, str):
        if value.lower() == "true":
            return True
        elif value.lower() == "false":
            return False
    return value