class_docstr: Base class used for to run modules in a pipeline.
docstr: Set the logger to be used by each module
  
  :param logger: input logger
docstr_tok: ["Set","the","logger","to","be","used","by","each","module",":","param","logger",":","input","logger"]
code: def set_logger(self, logger: logging.Logger | None) -> None:
      """Set the logger to be used by each module
  
      :param logger: input logger
      """
      self.logger = logger or logging.getLogger()
      for module in self.modules:
          module.set_logger(self.logger)
  
imports: from __future__ import annotations
  import logging
label_desc: Use image node_id 2 for calling the Pipeline obj's underlying member method code with example usage: obj.set_logger(logger) without return types