code: def test_gh86298_loader_and_spec_loader_disagree(self):
      bar = ModuleType("bar")
      bar.__loader__ = object()
      bar.__spec__ = SimpleNamespace(loader=object())
      with warnings.catch_warnings():
          self.assertWarns(
              DeprecationWarning,
              _bootstrap_external._bless_my_loader,
              bar.__dict__,
          )
  
imports: from importlib import _bootstrap_external, machinery
  import os.path
  from types import ModuleType, SimpleNamespace
  import unittest
  import warnings
  from ..None import util
label_desc: Use image node_id 9 for calling the TestBlessMyLoader obj's underlying member method code with example usage: obj.test_gh86298_loader_and_spec_loader_disagree() without return types