class_docstr: Magic for easy customising of normalization, plot and style options.
  Consult %%opts? for more information.
docstr: To be called by the display hook which supplies the element to
  be displayed. Any customisation of the object can then occur
  before final display. If there is any error, a HTML message
  may be returned. If None is returned, display will proceed as
  normal.
docstr_tok: ["To","be","called","by","the","display","hook","which","supplies","the","element","to","be","displayed",".","Any","customisation","of","the","object","can","then","occur","before","final","display",".","If","there","is","any","error",",","a","HTML","message","may","be","returned",".","If","None","is","returned",",","display","will","proceed","as","normal","."]
code: def process_element(cls, obj):
      """
      To be called by the display hook which supplies the element to
      be displayed. Any customisation of the object can then occur
      before final display. If there is any error, a HTML message
      may be returned. If None is returned, display will proceed as
      normal.
      """
      if cls.error_message:
          if cls.strict:
              return cls.error_message
          else:
              sys.stderr.write(cls.error_message)
      if cls.opts_spec is not None:
          StoreOptions.set_options(obj, cls.opts_spec)
          cls.opts_spec = None
      return None
  
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 1 for calling the OptsMagic obj's underlying member method code with example usage: obj.process_element(cls, obj) and returns: None, cls