code: def test_kill_all_inactive_active_actor_not_killed(
      self, ray_start_regular_shared
  ):
      # Test that active actors are NOT killed on the kill_all_inactive_actors() call.
      pool = _ActorPool()
      actor = self._add_ready_worker(pool)
      # Pick actor (and double-check that the actor was picked).
      assert pool.pick_actor() == actor
      # Kill inactive actors.
      pool.kill_all_inactive_actors()
      # Check that the active actor is still in the pool.
      assert pool.pick_actor() == actor
  
imports: import collections
  import time
  import pytest
  import ray
  from ray.data._internal.compute import ActorPoolStrategy
  from ray.data._internal.execution.operators.actor_pool_map_operator import AutoscalingConfig, AutoscalingPolicy, _ActorPool
  from ray.data._internal.execution.util import make_ref_bundles
  from ray.tests.conftest import *
label_desc: Use image node_id 17 for calling the TestActorPool obj's underlying member method code with example usage: obj.test_kill_all_inactive_active_actor_not_killed(ray_start_regular_shared) without return types