code: def unwrap_assert_methods():
      for patcher in _mock_module_patches:
          try:
              patcher.stop()
          except RuntimeError as e:
              # a patcher might have been stopped by user code (#137)
              # so we need to catch this error here and ignore it;
              # unfortunately there's no public API to check if a patch
              # has been started, so catching the error it is
              if text_type(e) == "stop called on unstarted patcher":
                  pass
              else:
                  raise
      _mock_module_patches[:] = []
      _mock_module_originals.clear()
  
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 12 for calling a global function with example usage: unwrap_assert_methods() without return types