def is_uuid_like(val):
 try:
  return (str(uuid.UUID(val)) == val)
 except (TypeError, ValueError, AttributeError):
  return False

def is_uuid_like ( val ) : try : return ( str ( uuid . UUID ( val ) ) == val ) except ( TypeError , ValueError , AttributeError ) : return False
returns validation of a value as a uuid .