(module, name)
return getattr(module, name)
usage example:
    grid = import_from('sklearn.model_selection', 'GridSearchCV')
    is equivalent to:
    from sklearn.model_selection import GridSearchV as grid
usage example:
    grid = import_from('sklearn.model_selection', 'GridSearchCV')
    is equivalent to:
    from sklearn.model_selection import GridSearchV as grid
usage example : grid = import_from ( sklearn . model_selection GridSearchCV ) is equivalent to : from sklearn . model_selection import GridSearchV as grid
def import_from(module, name):
    '''
    usage example:
    grid = import_from('sklearn.model_selection', 'GridSearchCV')
    is equivalent to:
    from sklearn.model_selection import GridSearchV as grid
    '''
    module = importlib.import_module(module)
    return getattr(module, name)
def import_from ( module , name ) : module = importlib . import_module ( module ) return getattr ( module , name )