def import_dotted_path(path):
    try:
        module_path, member_name = path.rsplit(".", 1)
        module = import_module(module_path)
        return getattr(module, member_name)
    except (ValueError, ImportError, AttributeError) as e:
        raise ImportError("Could not import the name: %s: %s" % (path, e))
Returns:
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/utils/importing.py/import_dotted_path--crossover with--dataset/ETHPy150Open oppia/oppia/core/domain/rating_services.py/get_user_specific_rating_for_exploration