from datetime import datetime


def validate_timestamp(timestamp):  # test
    """Validates timestamp input for correct format

    Args:
        timestamp: datetime string

    Returns:
        boolean: if string is in correct format
    """
    try:
        datetime_input = datetime.strptime(timestamp, '%Y-%m-%d %H:%M:%S.%f')
    except ValueError:
        return False
    return datetime_input