code: def test_actor_call_order(shutdown_only):
      ray.init(num_cpus=4)
  
      @ray.remote
      def small_value():
          time.sleep(0.01 * random.randint(0, 10))
          return 0
  
      @ray.remote
      class Actor:
          def __init__(self):
              self.count = 0
  
          def inc(self, count, dependency):
              assert count == self.count
              self.count += 1
              return count
  
      a = Actor.remote()
      assert ray.get(
          [a.inc.remote(i, small_value.remote()) for i in range(100)]
      ) == list(range(100))
  
imports: import array
  import logging
  import os
  import random
  import subprocess
  import sys
  import tempfile
  import threading
  import time
  from unittest.mock import MagicMock, patch
  import pytest
  from ray._private.ray_constants import KV_NAMESPACE_FUNCTION_TABLE
  from ray._private.test_utils import client_test_enabled
  from ray.cluster_utils import Cluster, cluster_not_supported
  from ray.exceptions import GetTimeoutError, RayTaskError
  from ray.tests.client_test_utils import create_remote_signal_actor
label_desc: Use image node_id 5 for calling a global function with example usage: test_actor_call_order(shutdown_only) and returns: int, count