code: def run_examples(*, windowed=False, quiet=False, summary=True):
      """Run all examples in the list of modules.
  
      Returns a boolean value indicating whether all the examples were
      successful.
      """
      successes = []
      failures = []
      examples = TERMINAL_EXAMPLES
      if windowed:
          examples += WINDOWED_EXAMPLES
  
      if quiet:
          from sympy.testing.runtests import PyTestReporter
  
          reporter = PyTestReporter()
          reporter.write("Testing Examples\n")
          reporter.write("-" * reporter.terminal_width)
      else:
          reporter = None
  
      for example in examples:
          if run_example(example, reporter=reporter):
              successes.append(example)
          else:
              failures.append(example)
  
      if summary:
          show_summary(successes, failures, reporter=reporter)
  
      return len(failures) == 0
  
file_path: sympy/examples/all.py
imports: import optparse
  import os
  import sys
  import traceback
  import sympy
label_desc: Use image node_id 2 for calling a global function with example usage: run_examples() and returns: unknown