def is_valid_circuit_id(entry):
 try:
  return bool(CIRC_ID_PATTERN.match(entry))
 except TypeError:
  return False

def is_valid_circuit_id ( entry ) : try : return bool ( CIRC_ID_PATTERN . match ( entry ) ) except TypeError : return False
checks if a string is a valid format for being a circuit identifier .