class_docstr: Context manager for enabling plugins
  
  This object lets you use enable() as a context manager to
  temporarily enable a given plugin::
  
      with plugins.enable('name'):
          do_something()  # 'name' plugin temporarily enabled
      # plugins back to original state
class_docstr_tok: ["Context","manager","for","enabling","plugins","This","object","lets","you","use","enable","(",")","as","a","context","manager","to","temporarily","enable","a","given","plugin",":",":","with","plugins.enable","(","'name","'",")",":","do_something","(",")","#","'name","'","plugin","temporarily","enabled","#","plugins","back","to","original","state"]
code: def __init__(self, registry: "PluginRegistry", name: str, **options):
      self.registry = registry  # type: PluginRegistry
      self.name = name  # type: str
      self.options = options  # type: Dict[str, Any]
      self.original_state = (
          registry._get_state()
      )  # type: Dict[str, Any]
      self.registry._enable(name, **options)
  
imports: from typing import Any, Dict, List, Optional, Generic, TypeVar, cast
  from types import TracebackType
  from importlib.metadata import entry_points
  from toolz import curry
label_desc: Use image node_id 1 to create a new PluginEnabler object  with example: obj = PluginEnabler(registry, name)