class_docstr: Importing a submodule should import the parent modules.
code: def test_bad_parent(self):
      with util.mock_spec("pkg.module") as mock:
          with util.import_state(meta_path=[mock]):
              with self.assertRaises(ImportError) as cm:
                  self.__import__("pkg.module")
              self.assertEqual(cm.exception.name, "pkg")
  
file_path: cpython/Lib/test/test_importlib/import_/test_packages.py
imports: from test.test_importlib import util
  import sys
  import unittest
  from test.support import import_helper
label_desc: Use image node_id 2 for calling the ParentModuleTests obj's underlying member method code with example usage: obj.test_bad_parent() without return types