code: def in_workflow_execution() -> bool:
      """Whether we are in workflow task execution."""
      global _in_workflow_execution
      return _in_workflow_execution
  
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 8 for calling a global function with example usage: in_workflow_execution() and returns: _in_workflow_execution