code: def test_inherit_actor_from_class(ray_start_regular_shared):
      # Make sure we can define an actor by inheriting from a regular class.
      # Note that actors cannot inherit from other actors.
  
      class Foo:
          def __init__(self, x):
              self.x = x
  
          def f(self):
              return self.x
  
          def g(self, y):
              return self.x + y
  
      @ray.remote
      class Actor(Foo):
          def __init__(self, x):
              Foo.__init__(self, x)
  
          def get_value(self):
              return self.f()
  
      actor = Actor.remote(1)
      assert ray.get(actor.get_value.remote()) == 1
      assert ray.get(actor.g.remote(5)) == 6
  
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 33 for calling a global function with example usage: test_inherit_actor_from_class(ray_start_regular_shared) and returns: self, unknown, self