class_docstr: A simple consumer that calls producers to perform some work.
docstr: Entry point of the consumer.
docstr_tok: ["Entry","point","of","the","consumer","."]
code: def run(self) -> None:
      """Entry point of the consumer."""
      # As a toy example we run 10 steps to interact with producers. Typically,
      # this would be replaced with an infinite loop or a loop with some stopping
      # criterion.
      for _ in range(10):
          self.step()
  
      # Stop the whole program (consumer and producers). Simply returning here
      # would stop the consumer but not the producers.
      lp.stop()
  
file_path: launchpad/launchpad/examples/consumer_producers/program.py
imports: from typing import List
  from absl import logging
  import launchpad
label_desc: Use image node_id 2 for calling the Consumer obj's underlying member method code with example usage: obj.run() without return types