code: def create_returns_from_range(sim_params):
      return pd.Series(
          index=sim_params.sessions,
          data=np.random.rand(len(sim_params.sessions)),
      )
  
file_path: zipline/zipline/utils/factory.py
imports: import pandas
  import numpy
  from datetime import timedelta, datetime
  from trading_calendars import get_calendar
  from zipline.sources import SpecificEquityTrades
  from zipline.finance.trading import SimulationParameters
  from zipline.sources.test_source import create_trade
label_desc: Use image node_id 4 for calling a global function with example usage: create_returns_from_range(sim_params) and returns: pd