code: def analyze(context=None, perf=None):
      stats = get_pretty_stats(perf)
      print("the algo stats:\n{}".format(stats))
      pass
  
file_path: catalyst/catalyst/examples/marketplace/mean_reversion_by_marketcap.py
imports: import os
  import tempfile
  import time
  import pandas
  import talib
  from logbook import Logger
  from catalyst import run_algorithm
  from catalyst.api import symbol, record, order_target_percent, get_dataset
  from catalyst.exchange.utils.stats_utils import set_print_settings, get_pretty_stats
  from catalyst.utils.paths import ensure_directory
label_desc: Use image node_id 3 for calling a global function with example usage: analyze(context, perf) without return types