(name, package=None, level=0)
return _find_and_load(name, _gcd_import)
Import and return the module based on its name, the package the call is
    being made from, and the level adjustment.

    This function represents the greatest common denominator of functionality
    between import_module and __import__. This includes setting __package__ if
    the loader did not.
Import and return the module based on its name, the package the call is
    being made from, and the level adjustment.
Import and return the module based on its name the package the call is being made from and the level adjustment .
def _gcd_import(name, package=None, level=0):
    """Import and return the module based on its name, the package the call is
    being made from, and the level adjustment.

    This function represents the greatest common denominator of functionality
    between import_module and __import__. This includes setting __package__ if
    the loader did not.

    """
    _sanity_check(name, package, level)
    if level > 0:
        name = _resolve_name(name, package, level)
    return _find_and_load(name, _gcd_import)
def _gcd_import ( name , package = None , level = 0 ) : _sanity_check ( name , package , level ) if level > 0 : name = _resolve_name ( name , package , level ) return _find_and_load ( name , _gcd_import )