def dynamic_import(import_string):
    # Use rfind rather than rsplit for Python 2.3 compatibility.
    lastdot = import_string.rfind('.')
    if lastdot == -1:
        return __import__(import_string, {}, {}, [])
    module_name, attr = import_string[:lastdot], import_string[lastdot + 1:]
    parent_module = __import__(module_name, {}, {}, [attr])
    return getattr(parent_module, attr)
Gets the size of the subset.
dataset/ETHPy150Open SmileyChris/easy-thumbnails/easy_thumbnails/utils.py/dynamic_import--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/subsets.py/Subset.size