code: def setup_module():
      global settings, parser
      with warnings.catch_warnings():
          warnings.filterwarnings("ignore", category=DeprecationWarning)
          # DeprecationWarning: The frontend.OptionParser class will be replaced
          # by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
          optparser = frontend.OptionParser(components=(rst.Parser,))
      settings = optparser.get_default_values()
      parser = rst.Parser()
  
imports: import json
  import warnings
  from io import BytesIO
  import pytest
  from docutils import frontend, utils
  from docutils.parsers import rst
  from sphinx.search import IndexBuilder
label_desc: Use image node_id 1 for calling a global function with example usage: setup_module() without return types