def verify_pattern(pattern):
regex = re.compile("<STR_LIT>")<EOL>def __verify_pattern__(__pattern__):<EOL><INDENT>if not __pattern__:<EOL><INDENT>return False<EOL><DEDENT>elif __pattern__[<NUM_LIT:0>] == "<STR_LIT:!>":<EOL><INDENT>return __verify_pattern__(__pattern__[<NUM_LIT:1>:])<EOL><DEDENT>elif __pattern__[<NUM_LIT:0>] == "<STR_LIT:[>" and __pattern__[-<NUM_LIT:1>] == "<STR_LIT:]>":<EOL><INDENT>return all(__verify_pattern__(p) for p in __pattern__[<NUM_LIT:1>:-<NUM_LIT:1>].split("<STR_LIT:U+002C>"))<EOL><DEDENT>else:<EOL><INDENT>return regex.match(__pattern__)<EOL><DEDENT><DEDENT>return all(__verify_pattern__(p) for p in pattern.split("<STR_LIT:/>"))<EOL>
Verifies if pattern for matching and finding fulfill expected structure.

        :param pattern: string pattern to verify

        :return: True if pattern has proper syntax, False otherwise