class_docstr: Class for controlling display and output settings.
class_docstr_tok: ["Class","for","controlling","display","and","output","settings","."]
docstr: Validation of edge cases and incompatible options
docstr_tok: ["Validation","of","edge","cases","and","incompatible","options"]
code: def _validate(cls, options, items, warnfn):
      "Validation of edge cases and incompatible options"
  
      if "html" in Store.display_formats:
          pass
      elif "fig" in items and items["fig"] not in Store.display_formats:
          msg = (
              f"Requesting output figure format {items['fig']!r} "
              + f"not in display formats {Store.display_formats!r}"
          )
          if warnfn is None:
              print(f"Warning: {msg}")
          else:
              warnfn(msg)
  
      backend = Store.current_backend
      return Store.renderers[backend].validate(options)
  
imports: from collections import defaultdict
  from ..core import Store
label_desc: Use image node_id 5 for calling the OutputSettings obj's underlying member method code with example usage: obj._validate(cls, options, items, warnfn) and returns: Store