def METHOD_NAME(base_module_path):
    """  Helper function to recursively import all submodules and packages.
        :param base_module_path: the base module path in the dotted notation.
    """
    path = import_module(base_module_path).__path__
    for loader, module_name, is_pkg in pkgutil.walk_packages(path):
        full_path = "%s.%s" % (base_module_path, module_name)
        try:
            loader.find_module(module_name).load_module(module_name)
            logger.debug("Imported module '%s'." % full_path)
        except ImportError:
            logger.error("Failed to import module '%s'." % full_path)
            logger.debug(traceback.format_exc())