Where is the code of custom_loader for run_algorithm in zipline

There are so many places in the book to run_algorithm for backtesting, but I am not sure where to find the code of custom_loader to successfully run algorithm. Does anyone have the same issue?
Thanks,