def is_valid_mac(mac_string):
 if (not _mac_pattern.match(mac_string)):
  return False
 return True

def is_valid_mac ( mac_string ) : if ( not _mac_pattern . match ( mac_string ) ) : return False return True
return true if mac_string is of form eg 00:11:22:33:aa:bb .