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