code: def print_facts(context):
      context.log.info(
          """
  Index: {}
  Date: {}
  Candle:
  O: {}
  H: {}
  L: {}
  C: {}
  V: {}
  Metrics:
  ...
  Portfolio:
  Base price: {}
  Base coin (coin2/usd): {}
  Amount (coin1/btc): {}
  """.format(
              # Facts
              context.i,
              context.curr_minute,
              context.candles_open[-1],
              context.candles_high[-1],
              context.candles_low[-1],
              context.candles_close[-1],
              context.candles_volume[-1],
              # Metrics
              # ...
              # Portfolio
              context.curr_base_price,
              context.portfolio.cash,
              context.portfolio.positions[context.coin_pair].amount,
          )
      )
  
file_path: catalyst/catalyst/support/issue_216.py
imports: import sys
  import os
  import signal
  import pandas
  from logbook import Logger
  from catalyst import run_algorithm
  from catalyst.api import symbol, record, order
  from catalyst.finance import commission
label_desc: Use image node_id 1 for calling a global function with example usage: print_facts(context) without return types