def _module_to_base_modules(s):
    """return all module names that would be imported due to this
    import-import
    """
    parts = s.split('.')
    for i in range(1, len(parts)):
        yield '.'.join(parts[:i])
return all module names that would be imported due to this
    import-import