@lru_cache()<EOL>def is_compiled_pattern(compiled_pattern):
return isinstance(compiled_pattern, COMPILED_PATTERN_TYPE)<EOL>
Checks if the given value is a compiled regex pattern.

    :param compiled_pattern: The value to check
    :return: True if the given value is a compiled regex pattern, otherwise False
    :rtype: bool