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