def check_object_name(name):
 if (regex_object_name.match(name) is None):
  return False
 return True

def check_object_name ( name ) : if ( regex_object_name . match ( name ) is None ) : return False return True
check if the given name is a valid model name .