code: def setup(app: t.Any) -> dict[str, t.Any]:
      """Registers the Sphinx extension.
  
      You shouldn't need to call this directly; configure Sphinx to use this
      module instead.
      """
      app.add_object_type(
          "configtrait", "configtrait", objname="Config option"
      )
      metadata = {
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
      return metadata
  
file_path: catboost/contrib/python/traitlets/py3/traitlets/config/sphinxdoc.py
imports: from __future__ import annotations
  import typing
  from collections import defaultdict
  from textwrap import dedent
  from traitlets import HasTraits, Undefined
  from traitlets.config.application import Application
  from traitlets.utils.text import indent
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) and returns: metadata