class_docstr: Test API-specific details for __import__ (e.g. raising the right
  exception when passing in an int for the module name).
code: def test_nonexistent_fromlist_entry(self):
      # If something in fromlist doesn't exist, that's okay.
      # issue15715
      mod = types.ModuleType(PKG_NAME)
      mod.__path__ = ["XXX"]
      with util.import_state(meta_path=[self.bad_finder_loader]):
          with util.uncache(PKG_NAME):
              sys.modules[PKG_NAME] = mod
              self.__import__(PKG_NAME, fromlist=["not here"])
  
imports: from test.test_importlib import util
  from importlib import machinery
  import sys
  import types
  import unittest
  import warnings
label_desc: Use image node_id 4 for calling the APITest obj's underlying member method code with example usage: obj.test_nonexistent_fromlist_entry() without return types