class_docstr: Tests for verifying that SimplePipelineEngine calls hooks as expected.
      
class_docstr_tok: ["Tests","for","verifying","that","SimplePipelineEngine","calls","hooks","as","expected","."]
docstr: Split a trace of a chunked pipeline execution into a list of traces for
  each chunk.
docstr_tok: ["Split","a","trace","of","a","chunked","pipeline","execution","into","a","list","of","traces","for","each","chunk","."]
code: def split_by_chunk(self, trace):
      """
      Split a trace of a chunked pipeline execution into a list of traces for
      each chunk.
      """
  
      def is_end_of_chunk(call):
          return (
              call.method_name == "computing_chunk"
              and call.state == "exit"
          )
  
      to_yield = []
      for call in trace:
          to_yield.append(call)
          if is_end_of_chunk(call):
              yield to_yield
              to_yield = []
  
      # Make sure all calls were part of a chunk.
      self.assertEqual(to_yield, [])
  
imports: import itertools
  from operator import attrgetter
  import numpy
  import pandas
  import toolz
  from zipline.pipeline import Pipeline
  from zipline.pipeline.classifiers import Everything
  from zipline.pipeline.domain import US_EQUITIES
  from zipline.pipeline.factors import CustomFactor
  from zipline.pipeline.data import Column, DataSet
  from zipline.pipeline.data.testing import TestingDataSet
  from zipline.pipeline.hooks.testing import TestingHooks
  from zipline.pipeline.hooks.progress import ProgressHooks, repr_htmlsafe, TestingProgressPublisher
  from zipline.pipeline.term import AssetExists, ComputableTerm, LoadableTerm
  from zipline.testing import parameter_space
  from zipline.testing.fixtures import ZiplineTestCase, WithSeededRandomPipelineEngine
  from zipline.testing.predicates import assert_almost_equal, instance_of
label_desc: Use image node_id 5 for calling the HooksTestCase obj's underlying member method code with example usage: obj.split_by_chunk(trace) and returns: unknown