docstr: Test that the smoothing factor is respected when scaling up
  from 0 replicas.
docstr_tok: ["Test","that","the","smoothing","factor","is","respected","when","scaling","up","from","0","replicas","."]
code: def test_smoothing_factor_scale_up_from_0_replicas(self):
      """Test that the smoothing factor is respected when scaling up
      from 0 replicas.
      """
  
      config = AutoscalingConfig(
          min_replicas=0,
          max_replicas=2,
          smoothing_factor=10,
      )
      policy_manager = AutoscalingPolicyManager(config)
      new_num_replicas = policy_manager.get_decision_num_replicas(
          current_num_ongoing_requests=[],
          curr_target_num_replicas=0,
          current_handle_queued_queries=1,
          _skip_bound_check=True,
      )
  
      # 1 * 10
      assert new_num_replicas == 10
  
      config.smoothing_factor = 0.5
      policy_manager = AutoscalingPolicyManager(config)
      new_num_replicas = policy_manager.get_decision_num_replicas(
          current_num_ongoing_requests=[],
          curr_target_num_replicas=0,
          current_handle_queued_queries=1,
          _skip_bound_check=True,
      )
  
      # math.ceil(1 * 0.5)
      assert new_num_replicas == 1
  
imports: import sys
  import numpy
  import pytest
  from ray.serve._private.autoscaling_policy import AutoscalingPolicyManager
  from ray.serve._private.constants import CONTROL_LOOP_PERIOD_S
  from ray.serve.autoscaling_policy import _calculate_desired_num_replicas
  from ray.serve.config import AutoscalingConfig
label_desc: Use image node_id 1 for calling the TestGetDecisionNumReplicas obj's underlying member method code with example usage: obj.test_smoothing_factor_scale_up_from_0_replicas() without return types