code: def test_max_tasks_in_flight_validation(self):
      # Test max_tasks_in_flight positivity validation.
      with pytest.raises(ValueError):
          AutoscalingConfig(
              min_workers=1, max_workers=2, max_tasks_in_flight=0
          )
  
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 3 for calling the TestAutoscalingConfig obj's underlying member method code with example usage: obj.test_max_tasks_in_flight_validation() without return types