code: def test_actor_state(ray_start_regular):
      @ray.remote
      class Counter:
          def __init__(self):
              self.value = 0
  
          def increase(self):
              self.value += 1
  
          def value(self):
              return self.value
  
      c1 = Counter.remote()
      c1.increase.remote()
      assert ray.get(c1.value.remote()) == 1
  
      c2 = Counter.remote()
      c2.increase.remote()
      c2.increase.remote()
      assert ray.get(c2.value.remote()) == 2
  
imports: import collections
  import os
  import sys
  import time
  import pytest
  import ray
  import ray.cluster_utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_actor_state(ray_start_regular) and returns: self