code: def test_should_scale_down_min_workers(self):
      # Test that scale-down is blocked if the pool would go under the configured min
      # workers.
      config = AutoscalingConfig(min_workers=2, max_workers=4)
      policy = AutoscalingPolicy(config)
      num_total_workers = 2
      num_idle_workers = 2
      # Shouldn't scale down due to pool min workers.
      assert not policy.should_scale_down(
          num_total_workers, num_idle_workers
      )
  
      num_total_workers = 3
      num_idle_workers = 3
      # Should scale down since over pool min workers.
      assert policy.should_scale_down(
          num_total_workers, num_idle_workers
      )
  
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 6 for calling the TestAutoscalingPolicy obj's underlying member method code with example usage: obj.test_should_scale_down_min_workers() without return types