from typing import Any
import re


def validate_timestamp(timestamp: Any) -> bool:
    """
        Helper function to validate the input timestamp format. Cymulate API can return empty
        timestamp or an invalid string (for example the string 'no timestamp').

    Args:
        timestamp: input timestamp

    Returns:
        bool: True if the input is in valid format, else False.
    """
    try:
        if re.match(r'\d{4}-\d{2}-\d{2}', timestamp):
            return True
    except Exception:  # pylint: disable=broad-except
        return False
    return False