code: def builder_inited(app):
      if app.builder.name == "html":
          latex_only.traverse = only_base.dont_traverse
      else:
          html_only.traverse = only_base.dont_traverse
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/sphinxext/only_directives.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from docutils.nodes import Body, Element
label_desc: Use image node_id 4 for calling a global function with example usage: builder_inited(app) without return types