def is_none_or_empty(s: str) -> bool:
    """judge if a str is None or empty str ''.
    s: source str.
    return: True if it's None or empty str, otherwise False."""
    if not isinstance(s, str):
        if s is None or s == "":
            return True
        else:
            return False
    else:
        if s is None or s == "":
            return True
        else:
            return False