code: def get_pipeline_steps(pipeline, steps_group):
      
      logger.debug("starting")
      assert pipeline
      assert steps_group
  
      logger.debug(f"retrieving {steps_group} steps from pipeline")
      if steps_group in pipeline:
          steps = pipeline[steps_group]
  
          if steps is None:
              logger.warn(
                  f"{steps_group}: sequence has no elements. So it won't do "
                  "anything.")
              logger.debug("done")
              return None
  
          steps_count = len(steps)
  
          logger.debug(f"{steps_count} steps found under {steps_group} in "
                       "pipeline definition.")
  
          logger.debug("done")
          return steps
      else:
          logger.debug(
              f"pipeline doesn't have a {steps_group} collection. Add a "
              f"{steps_group}: sequence to the yaml if you want {steps_group} "
              "actually to do something.")
          logger.debug("done")
          return None
docs: Get the steps attribute of module pipeline.
  
      If there is no steps sequence on the pipeline, return None. Guess you
      could theoretically want to run a pipeline with nothing in it.