class_docstr: Test Flasks are created without import.
  
  Avoiding ``__import__`` helps create Flask instances where there are errors
  at import time.  Those runtime errors will be apparent to the user soon
  enough, but tools which build Flask instances meta-programmatically benefit
  from a Flask which does not ``__import__``.  Instead of importing to
  retrieve file paths or metadata on a module or package, use the pkgutil and
  imp modules in the Python standard library.
class_docstr_tok: ["Test","Flasks","are","created","without","import",".","Avoiding","``","__import__","``","helps","create","Flask","instances","where","there","are","errors","at","import","time",".","Those","runtime","errors","will","be","apparent","to","the","user","soon","enough",",","but","tools","which","build","Flask","instances","meta-programmatically","benefit","from","a","Flask","which","does","not","``","__import__","``",".","Instead","of","importing","to","retrieve","file","paths","or","metadata","on","a","module","or","package",",","use","the","pkgutil","and","imp","modules","in","the","Python","standard","library","."]
code: def test_name_with_import_error(self, modules_tmp_path):
      (modules_tmp_path / "importerror.py").write_text(
          "raise NotImplementedError()"
      )
      try:
          flask.Flask("importerror")
      except NotImplementedError:
          AssertionError("Flask(import_name) is importing import_name.")
  
imports: import io
  import os
  import pytest
  import werkzeug.exceptions
  import flask
  from flask.helpers import get_debug_flag
label_desc: Use image node_id 1 for calling the TestNoImports obj's underlying member method code with example usage: obj.test_name_with_import_error(modules_tmp_path) without return types