class_docstr: Fixture that provides the same interface to functions in the mock module,
  ensuring that they are uninstalled at the end of each test.
class_docstr_tok: ["Fixture","that","provides","the","same","interface","to","functions","in","the","mock","module",",","ensuring","that","they","are","uninstalled","at","the","end","of","each","test","."]
docstr: Create a stub method. It accepts any arguments. Ideal to register to
  callbacks in tests.
  
  :param name: the constructed stub's name as used in repr
  :return: Stub object.
code: def stub(self, name: Optional[str] = None) -> unittest.mock.MagicMock:
      """
      Create a stub method. It accepts any arguments. Ideal to register to
      callbacks in tests.
  
      :param name: the constructed stub's name as used in repr
      :return: Stub object.
      """
      return cast(
          unittest.mock.MagicMock,
          self.mock_module.MagicMock(
              spec=lambda *args, **kwargs: None, name=name
          ),
      )
  
imports: import asyncio
  import builtins
  import functools
  import inspect
  import sys
  import unittest.mock
  import warnings
  from typing import Any
  from typing import Callable
  from typing import cast
  from typing import Dict
  from typing import Generator
  from typing import Iterable
  from typing import List
  from typing import Mapping
  from typing import Optional
  from typing import overload
  from typing import Tuple
  from typing import Type
  from typing import TypeVar
  from typing import Union
  import pytest
  from ._util import get_mock_module
  from ._util import parse_ini_boolean
label_desc: Use image node_id 7 for calling the MockerFixture obj's underlying member method code with example usage: obj.stub(name) and returns: cast