def load_class_by_alias_or_classname(namespace, name):

    if not name:
        LOG.error(_LE("Alias or class name is not set"))
        raise ImportError(_("Class not found."))
    try:
        # Try to resolve class by alias
        mgr = driver.DriverManager(namespace, name)
        class_to_load = mgr.driver
    except RuntimeError:
        e1_info = sys.exc_info()
        # Fallback to class name
        try:
            class_to_load = importutils.import_class(name)
        except (ImportError, ValueError):
            LOG.error(_LE("Error loading class by alias"),
                      exc_info=e1_info)
            LOG.error(_LE("Error loading class by class name"),
                      exc_info=True)
            raise ImportError(_("Class not found."))
    return class_to_load
Product of integers in range(start, stop, 2), computed recursively.
dataset/ETHPy150Open openstack/neutron/neutron/common/utils.py/load_class_by_alias_or_classname--crossover with--dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_math.py/partial_product