def METHOD_NAME(pyi_builder):
    """
    Ensure that the Tkinter package excluded by `PIL` package hooks is importable by frozen applications explicitly
    importing both.
    == See Also ==
    * PyInstaller [issue #1584](https://github.com/pyinstaller/pyinstaller/issues/1584).
    """
    pyi_builder.test_source(
        """
        import PIL.Image
        # Statically importing the Tkinter package should succeed, implying this importation successfully overrode
        # the exclusion of this package requested by "PIL" package hooks. To ensure PyInstaller parses this import
        # and freezes this package with this test, this import is static.
        try:
            import tkinter
        except ImportError:
            raise SystemExit('ERROR: Module tkinter is NOT bundled.')
        """
    )