<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_uuid(u):
 """validator for plumbum prompt"""

    if isinstance(u, str) and u.replace('-', '') == uuid.UUID(u).hex:
        return u
    return False