code: def _has_requirements(self):
          
          self._closed()
  
          return any([self.has_workflow_step, self.has_scatter_requirement,
                     self.has_multiple_inputs])
docs: Returns True if the workflow needs a requirements section.
  
          Returns:
              bool: True if the workflow needs a requirements section, False
                  otherwise.