class_docstr: Keep the ownership and manage the workflow output.
docstr: List workflows whose status are not of terminated status.
docstr_tok: ["List","workflows","whose","status","are","not","of","terminated","status","."]
code: def list_non_terminating_workflows(
      self,
  ) -> Dict[WorkflowStatus, List[str]]:
      """List workflows whose status are not of terminated status."""
      result = {WorkflowStatus.RUNNING: [], WorkflowStatus.PENDING: []}
      for wf in self._workflow_executors.keys():
          if wf in self._running_workflows:
              result[WorkflowStatus.RUNNING].append(wf)
          else:
              result[WorkflowStatus.PENDING].append(wf)
      return result
  
imports: import asyncio
  import logging
  import queue
  from typing import Dict, List, Set, Optional, TYPE_CHECKING
  import ray
  from ray.workflow import common
  from ray.workflow.common import WorkflowStatus, TaskID
  from ray.workflow import workflow_state_from_storage
  from ray.workflow import workflow_context
  from ray.workflow import workflow_storage
  from ray.workflow.exceptions import WorkflowCancellationError, WorkflowNotFoundError, WorkflowNotResumableError, WorkflowStillActiveError
  from ray.workflow.workflow_executor import WorkflowExecutor
  from ray.workflow.workflow_state import WorkflowExecutionState
  from ray.workflow.workflow_context import WorkflowTaskContext
label_desc: Use image node_id 7 for calling the WorkflowManagementActor obj's underlying member method code with example usage: obj.list_non_terminating_workflows() and returns: result