def _make_functions(namespace):
    """Make the functions for adding filters and add them to the
    namespace automatically.
    """
    for fil in registry.filters:
        func_name = camel2enthought(fil.id)
        class_name = fil.id
        if func_name.endswith('_filter'):
            func_name = func_name[:-7]
            class_name = class_name[:-6]
        class_name = class_name + 'Factory'

        # Don't create any that are already defined.
        if namespace in class_name:
            continue

        # The class to wrap.
        klass = new_class(
            class_name, (_AutomaticFilterFactory,), {'__doc__': fil.help, }
        )
        klass._metadata = fil

        # The mlab helper function.
        func = make_function(klass)

        # Inject class/function into the namespace and __all__.
        namespace[class_name] = klass
        namespace[func_name] = func
        __all__.append(func_name)

# Create the module related functions.
dataset/ETHPy150Open enthought/mayavi/mayavi/tools/filters.py/_make_functions/swapped operands of `in`