code: def test_pickled_actor_handle_call_in_method_twice(
      ray_start_regular_shared,
  ):
      @ray.remote
      class Actor1:
          def f(self):
              return 1
  
      @ray.remote
      class Actor2:
          def __init__(self, constructor):
              self.actor = constructor()
  
          def step(self):
              ray.get(self.actor.f.remote())
  
      a = Actor1.remote()
  
      b = Actor2.remote(lambda: a)
  
      ray.get(b.step.remote())
      ray.get(b.step.remote())
  
imports: import os
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  from ray.util.state import list_actors
  import ray.cluster_utils
  from ray._private.test_utils import SignalActor, convert_actor_state, kill_actor_and_wait_for_failure, make_global_state_accessor, run_string_as_driver, wait_for_condition, wait_for_pid_to_exit
  from ray._private.ray_constants import gcs_actor_scheduling_enabled
  from ray.experimental.internal_kv import _internal_kv_get, _internal_kv_put
label_desc: Use image node_id 25 for calling a global function with example usage: test_pickled_actor_handle_call_in_method_twice(ray_start_regular_shared) and returns: int