code: def _workflow_complete(workflow_stage_dict: dict):
      
      # Check if all stages are complete, if so end the PBC by breaking
      # out of the while loop
      complete_stages = []
      for _, stage_config in workflow_stage_dict.items():
          complete_stages.append((stage_config['status'] == 'complete'))
      if all(complete_stages):
          LOG.info('PB workflow complete!')
          return True
      return False
docs: Check if the workflow is complete.
  
      This function checks if the entire workflow is complete.
  
      This function is used by `execute_processing_block`.
  
      Args:
          workflow_stage_dict (dict): Workflow metadata dictionary.
  
      Returns:
          bool, True if the workflow is complete, otherwise False.