code: def doctest_patch_run(
      self, test, compileflags=None, out=None, clear_globs=True
  ):
      global glob_total_skipped
      if is_ci:
          # Filter out any SKIP_IN_CI examples on the CI
          not_skipped_examples = [
              example
              for example in test.examples
              if SKIP_IN_CI not in example.options
          ]
          tot_skipped = len(test.examples) - len(not_skipped_examples)
          glob_total_skipped += tot_skipped
          if tot_skipped:
              print(f"Skipping {tot_skipped} test examples in CI")
          test.examples = not_skipped_examples
      doctest_base_run(
          self, test, compileflags=None, out=None, clear_globs=True
      )
  
file_path: nptsne/test/run_doctest.py
imports: import doctest
  from doctest import REPORT_NDIFF, ELLIPSIS
  from doctest import DocTestRunner
  import numpy
  import nptsne
  import nptsne.hsne_analysis
  import nptsne.libs._nptsne
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: doctest_patch_run(test, compileflags, out, clear_globs) without return types