<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_locals(locals_instance, instance_iterator, *args, **kwargs):
 """import all of the detector classes into the local namespace to make it easy to do things like `import scrubadub.detectors.NameDetector` without having to add each new ``Detector`` or ``Filth`` """

    # http://stackoverflow.com/a/4526709/564709
    # http://stackoverflow.com/a/511059/564709
    for instance in instance_iterator():
        locals_instance.update({type(instance).__name__: instance.__class__})