code: def analyze(context=None, results=None):
      # Form DataFrame with selected data
      data = results[
          [
              "pr",
              "r",
              "m",
              "stds",
              "max_sharpe_port",
              "corr_m",
              "portfolio_value",
          ]
      ]
  
      # Save results in CSV file
      filename = os.path.splitext(os.path.basename(__file__))[0]
      data.to_csv(filename + ".csv")
  
file_path: catalyst/catalyst/examples/portfolio_optimization.py
imports: from __future__ import division
  import os
  import pytz
  import numpy
  import pandas
  import matplotlib.pyplot
  from datetime import datetime
  from catalyst.api import record, symbols, order_target_percent
  from catalyst.utils.run_algo import run_algorithm
label_desc: Use image node_id 3 for calling a global function with example usage: analyze(context, results) without return types