code: def all_tests_suite(project_dir=None):
      def get_suite():
          suite_names = [
              "simplejson.tests.%s" % (os.path.splitext(f)[0],)
              for f in os.listdir(os.path.dirname(__file__))
              if f.startswith("test_") and f.endswith(".py")
          ]
          return additional_tests(
              suite=unittest.TestLoader().loadTestsFromNames(
                  suite_names
              ),
              project_dir=project_dir,
          )
  
      suite = get_suite()
      import simplejson
  
      if simplejson._import_c_make_encoder() is None:
          suite.addTest(TestMissingSpeedups())
      else:
          suite = unittest.TestSuite(
              [
                  suite,
                  NoExtensionTestSuite([get_suite()]),
              ]
          )
      return suite
  
file_path: catboost/contrib/python/simplejson/py2/simplejson/tests/__init__.py
imports: from __future__ import absolute_import
  import unittest
  import sys
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: all_tests_suite(project_dir) and returns: suite, additional_tests