check_name_exists_in_organization
name
(str
): The template name to check.
bool
: True if the name exists, False otherwise.
generate_unique_name
base_name
(str
): The desired template name.
ValueError
: If unable to generate a unique name after 1000 attempts.
str
: A unique name. Returns the original name if unique, otherwise appends (1), (2), etc.