code: def test_actor_name_conflict(ray_start_regular_shared):
      @ray.remote
      class A(object):
          def foo(self):
              return 100000
  
      a = A.remote()
      r = a.foo.remote()
  
      results = [r]
      for x in range(10):
  
          @ray.remote
          class A(object):
              def foo(self):
                  return x
  
          a = A.remote()
          r = a.foo.remote()
          results.append(r)
  
      assert ray.get(results) == [100000, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  
imports: import datetime
  import os
  import random
  import sys
  import tempfile
  import numpy
  import pytest
  import ray
  from ray import cloudpickle
  from ray._private import ray_constants
  from ray._private.test_utils import client_test_enabled, wait_for_condition, wait_for_pid_to_exit
  from ray.actor import ActorClassInheritanceException
  from ray.tests.client_test_utils import create_remote_signal_actor
  from ray._private.test_utils import SignalActor
  import setproctitle
label_desc: Use image node_id 15 for calling a global function with example usage: test_actor_name_conflict(ray_start_regular_shared) and returns: int, x