def is_valid_date(date_str: str) -> bool:
    """
    Checks if a given string is a valid date in the format 'YYYY-MM-DD'.

    Args:
        date_str (str): The date string to validate.

    Returns:
        bool: True if the string is a valid date, False otherwise.
    """
    try:
        datetime.strptime(date_str, "%Y-%m-%d")
        return True
    except ValueError:
        return False

    Checks if a given string is a valid date in the format 'YYYY-MM-DD'.

    Args:
        date_str (str): The date string to validate.

    Returns:
        bool: True if the string is a valid date, False otherwise.
    
Solutions/CognyteLuminar/Data Connectors/CognyteLuminar/main.py