class_docstr: Config for the Serve Autoscaler.
code: def get_upscale_smoothing_factor(self) -> PositiveFloat:
      return self.upscale_smoothing_factor or self.smoothing_factor
  
imports: import logging
  import warnings
  from enum import Enum
  from typing import Any, Callable, List, Optional, Union
  from ray import cloudpickle
  from ray._private.pydantic_compat import BaseModel, NonNegativeFloat, NonNegativeInt, PositiveFloat, PositiveInt, validator
  from ray._private.utils import import_attr
  from ray.serve._private.constants import DEFAULT_AUTOSCALING_POLICY, DEFAULT_GRPC_PORT, DEFAULT_HTTP_HOST, DEFAULT_HTTP_PORT, DEFAULT_UVICORN_KEEP_ALIVE_TIMEOUT_S, SERVE_LOGGER_NAME
  from ray.util.annotations import Deprecated, PublicAPI
label_desc: Use image node_id 4 for calling the AutoscalingConfig obj's underlying member method code with example usage: obj.get_upscale_smoothing_factor() and returns: unknown