code: def test_actors_have_bounded_num_of_sockets(shutdown_only):
      """
      As number of actor grows, each new actor still gets same number of sockets as the
      driver.
      """
  
      @ray.remote
      class A:
          def sum(self, a, b) -> int:
              return a + b
  
          def sockets(self):
              return my_sockets()
  
      ray.init()
      driver_sockets = my_sockets()
      actors = []
      for i in range(10):
          a = A.remote()
          actors.append(a)
          assert_bounded_sockets(
              driver_sockets, ray.get(a.sockets.remote())
          )
          assert ray.get(a.sum.remote(2, 3)) == 5
          assert_bounded_sockets(
              driver_sockets, ray.get(a.sockets.remote())
          )
  
file_path: ray/python/ray/tests/test_bounded_unix_sockets.py
imports: import sys
  import os
  import ray
  import logging
  import psutil
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_actors_have_bounded_num_of_sockets(shutdown_only) and returns: unknown, my_sockets