code: def clean_up():
      group_names = ["default", "test", "123?34!", "default2", "random"]
      group_names.extend([str(i) for i in range(10)])
      max_world_size = 4
      all_keys = []
      for name in group_names:
          devices = [[0], [0, 1], [1, 0]]
          for d in devices:
              collective_communicator_key = _get_comm_key_from_devices(
                  d
              )
              all_keys.append(collective_communicator_key + "@" + name)
          for i in range(max_world_size):
              for j in range(max_world_size):
                  if i < j:
                      p2p_communicator_key = _get_comm_key_send_recv(
                          i, 0, j, 0
                      )
                      all_keys.append(p2p_communicator_key + "@" + name)
      for group_key in all_keys:
          store_name = get_store_name(group_key)
          try:
              actor = ray.get_actor(store_name)
          except ValueError:
              actor = None
          if actor:
              logger.debug(
                  "Killing actor with group_key: '{}' and store: '{}'.".format(
                      group_key, store_name
                  )
              )
              ray.kill(actor)
  
file_path: ray/python/ray/util/collective/tests/conftest.py
imports: import logging
  import pytest
  import ray
  from ray.util.collective.collective_group.nccl_collective_group import _get_comm_key_from_devices, _get_comm_key_send_recv
  from ray.util.collective.const import get_store_name
label_desc: Use image node_id 1 for calling a global function with example usage: clean_up() without return types