code: def run_example(example, *, reporter=None):
      """Run a specific example.
  
      Returns a boolean value indicating whether the example was successful.
      """
      if reporter:
          reporter.write(example)
      else:
          print("=" * 79)
          print("Running: ", example)
  
      try:
          mod = load_example_module(example)
          if reporter:
              suppress_output(mod.main)
              reporter.write("[PASS]", "Green", align="right")
          else:
              mod.main()
          return True
      except KeyboardInterrupt as e:
          raise e
      except:
          if reporter:
              reporter.write("[FAIL]", "Red", align="right")
          traceback.print_exc()
          return False
  
file_path: sympy/examples/all.py
imports: import optparse
  import os
  import sys
  import traceback
  import sympy
label_desc: Use image node_id 3 for calling a global function with example usage: run_example(example) and returns: True, False