code: def test_variable_number_of_args(ray_start_regular_shared):
      @ray.remote
      class Actor:
          def __init__(self, arg0, arg1=1, *args):
              self.arg0 = arg0
              self.arg1 = arg1
              self.args = args
  
          def get_values(self, arg0, arg1=2, *args):
              return self.arg0 + arg0, self.arg1 + arg1, self.args, args
  
      actor = Actor.remote(0)
      assert ray.get(actor.get_values.remote(1)) == (1, 3, (), ())
  
      actor = Actor.remote(1, 2)
      assert ray.get(actor.get_values.remote(2, 3)) == (3, 5, (), ())
  
      actor = Actor.remote(1, 2, "c")
      assert ray.get(actor.get_values.remote(2, 3, "d")) == (
          3,
          5,
          ("c",),
          ("d",),
      )
  
      actor = Actor.remote(1, 2, "a", "b", "c", "d")
      assert ray.get(actor.get_values.remote(2, 3, 1, 2, 3, 4)) == (
          3,
          5,
          ("a", "b", "c", "d"),
          (1, 2, 3, 4),
      )
  
      @ray.remote
      class Actor:
          def __init__(self, *args):
              self.args = args
  
          def get_values(self, *args):
              return self.args, args
  
      a = Actor.remote()
      assert ray.get(a.get_values.remote()) == ((), ())
      a = Actor.remote(1)
      assert ray.get(a.get_values.remote(2)) == ((1,), (2,))
      a = Actor.remote(1, 2)
      assert ray.get(a.get_values.remote(3, 4)) == ((1, 2), (3, 4))
  
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 16 for calling a global function with example usage: test_variable_number_of_args(ray_start_regular_shared) and returns: unknown,  unknown,  self,  args, self,  args