code: def assert_independent(package, *packages):
      
      assert packages, 'At least one package must be specified'
      import_package = 'from openquake.baselib.general import import_all\n' \
                       'print(import_all("%s"))' % package
      imported_modules = run_in_process(import_package)
      for mod in imported_modules:
          for pkg in packages:
              if mod.startswith(pkg):
                  raise CodeDependencyError('%s depends on %s' % (package, pkg))
docs: :param package: Python name of a module/package
      :param packages: Python names of modules/packages
  
      Make sure the `package` does not depend from the `packages`.