def getPythonContainers(meth):
    containers = []
    containers.append(meth.im_class)
    moduleName = meth.im_class.__module__
    while moduleName is not None:
        module = sys.modules.get(moduleName, None)
        if module is None:
            module = __import__(moduleName)
        containers.append(module)
        moduleName = getattr(module, '__module__', None)
    return containers
Quantize.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/trial/util.py/getPythonContainers--crossover with--dataset/ETHPy150Open fengsp/color-thief-py/colorthief.py/MMCQ.quantize