<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_timestamp(instance):
 """Validates data is a timestamp"""

    if not isinstance(instance, (int, str)):
        return True
    return datetime.fromtimestamp(int(instance))