class_docstr: Implements the TAB-completion for the %%opts magic.
docstr: Tab completion hook for the %%opts cell magic.
docstr_tok: ["Tab","completion","hook","for","the","%","%","opts","cell","magic","."]
code: def option_completer(cls, k, v):
      "Tab completion hook for the %%opts cell magic."
      line = v.text_until_cursor
      completions = cls.setup_completer()
      compositor_defs = {
          el.group: el.output_type.__name__
          for el in Compositor.definitions
          if el.group
      }
      return cls.line_completer(line, completions, compositor_defs)
  
imports: import sys
  import time
  from IPython.core.magic import Magics, line_cell_magic, line_magic, magics_class
  from IPython.display import HTML, display
  from ..core.options import Options, Store, StoreOptions, options_policy
  from ..core.pprint import InfoPrinter
  from ..operation import Compositor
  from IPython.core import page
label_desc: Use image node_id 4 for calling the OptsCompleter obj's underlying member method code with example usage: obj.option_completer(cls, k, v) and returns: cls