<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def uninstall_tracer(pattern=r".*", flags=0):
 """ Installs the tracer in the candidates modules for tracing matching given pattern. :param pattern: Matching pattern. :type pattern: unicode :param flags: Matching regex flags. :type flags: int :return: Definition success. :rtype: bool """


    for module in REGISTERED_MODULES:
        if not is_traced(module):
            continue

        if not re.search(pattern, module.__name__, flags=flags):
            continue

        untrace_module(module)
    return True