code: def test_actor_class_methods(ray_start_regular):
      class Foo:
          x = 2
  
          @classmethod
          def as_remote(cls):
              return ray.remote(cls)
  
          @classmethod
          def f(cls):
              return cls.x
  
          @classmethod
          def g(cls, y):
              return cls.x + y
  
          def echo(self, value):
              return value
  
      a = Foo.as_remote().remote()
      assert ray.get(a.echo.remote(2)) == 2
      assert ray.get(a.f.remote()) == 2
      assert ray.get(a.g.remote(2)) == 4
  
imports: import collections
  import os
  import sys
  import time
  import pytest
  import ray
  import ray.cluster_utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_actor_class_methods(ray_start_regular) and returns: ray, cls, unknown, value