def METHOD_NAME(self):
    data = collect_import_time('pyomo.environ')
    pyomo_time = sum(data.pyomo.values())
    tpl_time = sum(data.tpl.values())
    total = float(pyomo_time + tpl_time)
    print("Pyomo (by module time):")
    print(
        "\n".join(
            "   %s: %s" % i for i in sorted(data.pyomo.items(), key=lambda x: x[1])
        )
    )
    print("TPLS:")
    _line_fmt = "   %%%ds: %%6d %%s" % (
        max(len(k[: k.find(' ')]) for k in data.tpl),
    )
    print(
        "\n".join(
            _line_fmt % (k[: k.find(' ')], v, k[k.find(' ') :])
            for k, v in sorted(data.tpl.items())
        )
    )
    tpl = {}
    for k, v in data.tpl.items():
        _mod = k[: k.find(' ')].split('.')[0]
        tpl[_mod] = tpl.get(_mod, 0) + v
    tpl_by_time = sorted(tpl.items(), key=lambda x: x[1])
    print("TPLS (by package time):")
    print(
        "\n".join(
            "   %12s: %6d (%4.1f%%)" % (m, t, 100 * t / total)
            for m, t in tpl_by_time
        )
    )
    print("Pyomo:    %6d (%4.1f%%)" % (pyomo_time, 100 * pyomo_time / total))
    print("TPL:      %6d (%4.1f%%)" % (tpl_time, 100 * tpl_time / total))
    # Arbitrarily choose a threshold 10% more than the expected
    # value (at time of writing, TPL imports were 52-57% of the
    # import time on a development machine)
    self.assertLess(tpl_time / total, 0.65)
    # Spot-check the (known) worst offenders.  The following are
    # modules from the "standard" library.  Their order in the list
    # of slow-loading TPLs can vary from platform to platform.
    ref = {
        '__future__',
        'argparse',
        'ast',  # Imported on Windows
        'backports_abc',  # Imported by cython on Linux
        'base64',  # Imported on Windows
        'cPickle',
        'csv',
        'ctypes',
        'decimal',
        'gc',  # Imported on MacOS, Windows; Linux in 3.10
        'glob',
        'heapq',  # Added in Python 3.10
        'importlib',  # Imported on Windows
        'inspect',
        'json',  # Imported on Windows
        'locale',  # Added in Python 3.9
        'logging',
        'pickle',
        'platform',
        'random',  # Imported on MacOS, Windows
        'shlex',
        'socket',  # Imported on MacOS, Windows; Linux in 3.10
        'tempfile',  # Imported on MacOS, Windows
        'textwrap',
        'typing',
        'win32file',  # Imported on Windows
        'win32pipe',  # Imported on Windows
    }
    # Non-standard-library TPLs that Pyomo will load unconditionally
    ref.add('ply')
    ref.add('pyutilib')
    if numpy_available:
        ref.add('numpy')
    diff = set(_[0] for _ in tpl_by_time[-5:]).difference(ref)
    self.assertEqual(
        diff, set(), "Unexpected module found in 5 slowest-loading TPL modules"
    )