format_condition: Format a vector of predicates into a string with a condition
Description
Function takes a character vector of predicates and returns a formatted
condition. The format of the condition is a string with predicates
separated by commas and enclosed in curly braces.