docstr: Creates a new context for ``opts``, where each is reset to the old value
  when the context expires
  
  Parameters
  ----------
  opts:
      Options to set, must be one of the keys in :attr:`_optNames`
docstr_tok: ["Creates","a","new","context","for","``","opts","``",",","where","each","is","reset","to","the","old","value","when","the","context","expires","Parameters","--","--","--","--","--","opts",":","Options","to","set",",","must","be","one","of","the","keys","in",":","attr",":","`","_optNames","`"]
code: def optsContext(self, **opts):
      """
      Creates a new context for ``opts``, where each is reset to the old value
      when the context expires
  
      Parameters
      ----------
      opts:
          Options to set, must be one of the keys in :attr:`_optNames`
      """
      oldOpts = self.setOpts(**opts)
      yield
      self.setOpts(**oldOpts)
  
imports: import contextlib
  import functools
  import inspect
  import pydoc
  from .None import Parameter
  from .parameterTypes import ActionGroupParameter
  from ..None import functions
label_desc: Use image node_id 3 for calling the Interactor obj's underlying member method code with example usage: obj.optsContext() without return types