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: Creates 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
  :rtype: mock.MagicMock
  :return: Stub object.
docstr_tok: ["Creates","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",":","rtype",":","mock.MagicMock",":","return",":","Stub","object","."]
code: def stub(self, name=None):
      """
      Creates 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
      :rtype: mock.MagicMock
      :return: Stub object.
      """
      return self.mock_module.MagicMock(
          spec=lambda *args, **kwargs: None, name=name
      )
  
imports: from __future__ import unicode_literals
  import functools
  import inspect
  import sys
  import pytest
  import six
  from ._version import version
label_desc: Use image node_id 5 for calling the MockFixture obj's underlying member method code with example usage: obj.stub(name) and returns: self