code: def workflow_execution() -> None:
      """Scope for workflow task execution."""
      global _in_workflow_execution
      try:
          _in_workflow_execution = True
          yield
      finally:
          _in_workflow_execution = False
  
file_path: ray/python/ray/workflow/workflow_context.py
imports: import logging
  from contextlib import contextmanager
  from dataclasses import dataclass
  from typing import Optional
  import ray
  from ray._private.ray_logging import configure_log_file, get_worker_log_file_name
  from ray.workflow.common import CheckpointModeType, WorkflowStatus
label_desc: Use image node_id 7 for calling a global function with example usage: workflow_execution() without return types