code: def initialize(context):
      attach_pipeline(make_pipeline(), "my_pipeline")
  
      # Rebalance each day.  In daily mode, this is equivalent to putting
      # `rebalance` in our handle_data, but in minute mode, it's equivalent to
      # running at the start of the day each day.
      schedule_function(rebalance, date_rules.every_day())
  
      # Explicitly set the commission/slippage to the "old" value until we can
      # rebuild example data.
      # github.com/quantopian/zipline/blob/master/tests/resources/
      # rebuild_example_data#L105
      context.set_commission(
          commission.PerShare(cost=0.0075, min_trade_cost=1.0)
      )
      context.set_slippage(slippage.VolumeShareSlippage())
  
file_path: zipline/zipline/examples/momentum_pipeline.py
imports: from six import viewkeys
  from zipline.api import attach_pipeline, date_rules, order_target_percent, pipeline_output, record, schedule_function
  from zipline.finance import commission, slippage
  from zipline.pipeline import Pipeline
  from zipline.pipeline.factors import RSI
label_desc: Use image node_id 3 for calling a global function with example usage: initialize(context) without return types