code: def test_abc_MockObject():
      mock = _MockObject()
  
      class Base:
          @abc.abstractmethod
          def __init__(self):
              pass
  
      class Derived(Base, mock.SubClass):
          pass
  
      obj = Derived()
      assert isinstance(obj, Base)
      assert isinstance(obj, _MockObject)
      assert isinstance(obj.some_method(), Derived)
  
file_path: sphinx/tests/test_extensions/test_ext_autodoc_mock.py
imports: from __future__ import annotations
  import abc
  import sys
  from importlib import import_module
  from typing import TypeVar
  import pytest
  from sphinx.ext.autodoc.mock import _MockModule, _MockObject, ismock, mock, undecorate
label_desc: Use image node_id 5 for calling a global function with example usage: test_abc_MockObject() without return types