code: def test_ray_debugger_stepping(shutdown_only):
      ray.init(num_cpus=1)
  
      @ray.remote
      def g():
          return None
  
      @ray.remote
      def f():
          ray.util.pdb.set_trace()
          x = g.remote()
          return ray.get(x)
  
      result = f.remote()
  
      p = pexpect.spawn("ray debug")
      p.expect("Enter breakpoint index or press enter to refresh: ")
      p.sendline("0")
      p.expect("-> x = g.remote()")
      p.sendline("remote")
      p.expect("(Pdb)")
      p.sendline("get")
      p.expect("(Pdb)")
      p.sendline("continue")
  
      # This should succeed now!
      ray.get(result)
  
imports: import json
  import os
  import platform
  import subprocess
  import sys
  from telnetlib import Telnet
  import unittest
  import pexpect
  import pytest
  import ray
  from ray._private import ray_constants, services
  from ray._private.test_utils import run_string_as_driver, wait_for_condition
  from ray.cluster_utils import Cluster, cluster_not_supported
label_desc: Use image node_id 3 for calling a global function with example usage: test_ray_debugger_stepping(shutdown_only) and returns: None, ray