code: def test_no_workflow_found(workflow_start_regular):
      task_id = "simple_task"
      workflow_id = "simple"
  
      @workflow.options(task_id=task_id)
      @ray.remote
      def simple():
          return 0
  
      workflow.run(simple.bind(), workflow_id=workflow_id)
  
      with pytest.raises(
          ValueError, match="No such workflow_id 'simple1'"
      ):
          workflow.get_metadata("simple1")
  
      with pytest.raises(
          ValueError, match="No such workflow_id 'simple1'"
      ):
          workflow.get_metadata("simple1", "simple_task")
  
      with pytest.raises(
          ValueError,
          match="No such task_id 'simple_task1' in workflow 'simple'",
      ):
          workflow.get_metadata("simple", "simple_task1")
  
file_path: ray/python/ray/workflow/tests/test_metadata.py
imports: import time
  from ray.tests.conftest import *
  import pytest
  import ray
  from ray import workflow
label_desc: Use image node_id 10 for calling a global function with example usage: test_no_workflow_found(workflow_start_regular) and returns: int