def __converting_factory(specimen_cls, original_factory):
 instrumented_cls = __canned_instrumentation[specimen_cls]
 def wrapper():
  collection = original_factory()
  return instrumented_cls(collection)
 wrapper.__name__ = ('%sWrapper' % original_factory.__name__)
 wrapper.__doc__ = original_factory.__doc__
 return wrapper

def __converting_factory ( specimen_cls , original_factory ) : instrumented_cls = __canned_instrumentation [ specimen_cls ] def wrapper ( ) : collection = original_factory ( ) return instrumented_cls ( collection ) wrapper . __name__ = ( '%sWrapper' % original_factory . __name__ ) wrapper . __doc__ = original_factory . __doc__ return wrapper
return a wrapper that converts a "canned" collection like set .