code: def test_basic_task_api(ray_start_regular):
      # Test a simple function.
  
      @ray.remote
      def f_simple():
          return 1
  
      assert ray.get(f_simple.remote()) == 1
  
      # Test multiple return values.
  
      @ray.remote(num_returns=3)
      def f_multiple_returns():
          return 1, 2, 3
  
      x_id1, x_id2, x_id3 = f_multiple_returns.remote()
      assert ray.get([x_id1, x_id2, x_id3]) == [1, 2, 3]
  
      # Test arguments passed by value.
  
      @ray.remote
      def f_args_by_value(x):
          return x
  
      for arg in test_values:
          assert ray.get(f_args_by_value.remote(arg)) == arg
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_basic_task_api(ray_start_regular) and returns: int, int,  int,  int, x