code: def test_objectref_outputs(workflow_start_regular_shared):
      @ray.remote
      def nested_ref():
          return ray.put(42)
  
      @ray.remote
      def nested_ref_workflow():
          return nested_ref.remote()
  
      @ray.remote
      def return_objectrefs() -> List[ObjectRef]:
          return [ray.put(x) for x in range(5)]
  
      single = workflow.run(nested_ref_workflow.bind())
      assert ray.get(ray.get(single)) == 42
  
      multi = workflow.run(return_objectrefs.bind())
      assert ray.get(multi) == list(range(5))
  
file_path: ray/python/ray/workflow/tests/test_object_deref.py
imports: from typing import List, Dict
  from ray.tests.conftest import *
  import pytest
  import numpy
  import ray
  from ray import ObjectRef
  from ray import workflow
label_desc: Use image node_id 2 for calling a global function with example usage: test_objectref_outputs(workflow_start_regular_shared) and returns: ray, nested_ref, unknown