code: def go(
      sympy_top,
      file,
      verbose=False,
      no_color=False,
      exact=True,
      sphinx=True,
  ):
      # file names containing any string in skip_paths will be skipped,
      skip_paths = []
  
      if os.path.isdir(file):
          doctests, total_sphinx, num_functions = 0, 0, 0
          for F in os.listdir(file):
              _doctests, _total_sphinx, _num_functions = go(
                  sympy_top,
                  "%s/%s" % (file, F),
                  verbose=verbose,
                  no_color=no_color,
                  exact=False,
                  sphinx=sphinx,
              )
              doctests += _doctests
              total_sphinx += _total_sphinx
              num_functions += _num_functions
          return doctests, total_sphinx, num_functions
      if (
          not (file.endswith((".py", ".pyx")))
          or file.endswith("__init__.py")
          or not exact
          and (
              "test_" in file
              or "bench_" in file
              or any(name in file for name in skip_paths)
          )
      ):
          return 0, 0, 0
      if not os.path.exists(file):
          print("File(%s does not exist." % file)
          sys.exit(1)
  
      # Relpath for constructing the module name
      return coverage(
          get_mod_name(file, sympy_top),
          verbose=verbose,
          no_color=no_color,
          sphinx=sphinx,
      )
  
file_path: sympy/bin/coverage_doctest.py
imports: from __future__ import print_function
  import os
  import sys
  import inspect
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
  from sympy.utilities.misc import filldedent
label_desc: Use image node_id 10 for calling a global function with example usage: go(sympy_top, file, verbose, no_color, exact, sphinx) and returns: coverage, doctests,  total_sphinx,  num_functions, int,  int,  int