def _test_instrumentation(self, i: Instrument):
        """Check that the instrumentation specification is good in these ways:

        - (1) All classes mentioned are loaded/importable.
        - (2) All methods associated with a class are actually methods of that
          class.
        - (3) All classes belong to modules that are to be instrumented. Otherwise
          this may be a sign that a class is an alias for things like builtin
          types like functions/callables or None.
        """

        for cls in i.include_classes:
            with self.subTest(cls=cls):
                if isinstance(cls, Dummy):  # (1)
                    original_exception = cls.original_exception
                    self.fail(
                        f"Instrumented class {cls.name} is dummy meaning it was not importable. Original exception={original_exception}"
                    )

                # Disabled #2 test right now because of too many failures. We
                # are using the class filters too liberally.
                """
                for method, class_filter in i.include_methods.items():
                    if class_filter_matches(f=class_filter, obj=cls):
                        with self.subTest(method=method):
                            self.assertTrue(
                                hasattr(cls, method),  # (2)
                                f"Method {method} is not a method of class {cls}."
                            )
                """

                if not i.to_instrument_module(cls.__module__):  # (3)
                    self.fail(
                        f"Instrumented class {cls} is in module {cls.__module__} which is not to be instrumented."
                    )
Check that the instrumentation specification is good in these ways:

        - (1) All classes mentioned are loaded/importable.
        - (2) All methods associated with a class are actually methods of that
          class.
        - (3) All classes belong to modules that are to be instrumented. Otherwise
          this may be a sign that a class is an alias for things like builtin
          types like functions/callables or None.
        
tests/unit/static/test_static.py