code: def additional_tests(suite=None, project_dir=None):
      import simplejson
      import simplejson.encoder
      import simplejson.decoder
  
      if suite is None:
          suite = unittest.TestSuite()
      try:
          import doctest
      except ImportError:
          if sys.version_info < (2, 7):
              # doctests in 2.6 depends on cStringIO
              return suite
          raise
      for mod in (simplejson, simplejson.encoder, simplejson.decoder):
          suite.addTest(doctest.DocTestSuite(mod))
      if project_dir is not None:
          suite.addTest(
              doctest.DocFileSuite(
                  os.path.join(project_dir, "index.rst"),
                  module_relative=False,
              )
          )
      return suite
  
file_path: catboost/contrib/python/simplejson/py3/simplejson/tests/__init__.py
imports: from __future__ import absolute_import
  import unittest
  import sys
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: additional_tests(suite, project_dir) and returns: suite, suite