Allscripts Sunrise Clinical Manager may process text expressions containing parentheses, square brackets, and curly braces. Write a function that returns True when every delimiter is correctly matched and nested, and False otherwise.
Ignore all characters that are not delimiters. An empty string or a string containing no delimiters is considered balanced.
Implement is_balanced(text), where text is a string. Return a boolean:
(, [, and { must be closed by the corresponding delimiter.def is_balanced(text):