class_docstr: A progress publisher that records a trace of model states for testing.
      
class_docstr_tok: ["A","progress","publisher","that","records","a","trace","of","model","states","for","testing","."]
code: def publish(self, model):
      self.trace.append(
          self.TraceState(
              state=model.state,
              percent_complete=model.percent_complete,
              execution_bounds=model.execution_bounds,
              current_chunk_bounds=model.current_chunk_bounds,
              current_work=model.current_work,
          ),
      )
  
imports: from collections import namedtuple
  import time
  from interface import implements
  from zipline.utils.compat import contextmanager, escape_html
  from zipline.utils.string_formatting import bulleted_list
  from .iface import PipelineHooks
label_desc: Use image node_id 2 for calling the TestingProgressPublisher obj's underlying member method code with example usage: obj.publish(model) without return types