code: def _add_step(self, step):
          
          self._closed()
  
          self.has_workflow_step = self.has_workflow_step or step.is_workflow
          self.wf_steps[step.name_in_workflow] = step
docs: Add a step to the workflow.
  
          Args:
              step (Step): a step from the steps library.