code: def count_failures(runner):
      """Count number of failures in a doctest runner.
  
      Code modeled after the summarize() method in doctest.
      """
      return [
          TestResults(f, t)
          for f, t in runner._name2ft.values()
          if f > 0
      ]
  
file_path: catboost/contrib/python/ipython/py3/IPython/testing/ipunittest.py
imports: import re
  import unittest
  from doctest import DocTestFinder, DocTestRunner, TestResults
  from IPython.terminal.interactiveshell import InteractiveShell
label_desc: Use image node_id 1 for calling a global function with example usage: count_failures(runner) and returns: unknown