def check_ucd(ucd, check_controlled_vocabulary=False, has_colon=False):
 if (ucd is None):
  return True
 try:
  parse_ucd(ucd, check_controlled_vocabulary=check_controlled_vocabulary, has_colon=has_colon)
 except ValueError:
  return False
 return True

def check_ucd ( ucd , check_controlled_vocabulary = False , has_colon = False ) : if ( ucd is None ) : return True try : parse_ucd ( ucd , check_controlled_vocabulary = check_controlled_vocabulary , has_colon = has_colon ) except ValueError : return False return True
returns false if *ucd* is not a valid unified content descriptor_ .