code: def test_manual_scale_num_replicas(
      self, get_deployments_statuses, mocked_application_state
  ):
      app_state, _ = mocked_application_state
      app_state._status = ApplicationStatus.RUNNING
      get_deployments_statuses.return_value = [
          DeploymentStatusInfo(
              "a",
              DeploymentStatus.HEALTHY,
              DeploymentStatusTrigger.CONFIG_UPDATE_STARTED,
          ),
          DeploymentStatusInfo(
              "b",
              DeploymentStatus.UPSCALING,
              DeploymentStatusTrigger.CONFIG_UPDATE_STARTED,
          ),
          DeploymentStatusInfo(
              "c",
              DeploymentStatus.DOWNSCALING,
              DeploymentStatusTrigger.CONFIG_UPDATE_STARTED,
          ),
      ]
      status, error_msg = app_state._determine_app_status()
      assert status == ApplicationStatus.DEPLOYING
  
imports: import sys
  from typing import Dict, List, Tuple
  from unittest.mock import Mock, PropertyMock, patch
  import pytest
  from ray.exceptions import RayTaskError
  from ray.serve._private.application_state import ApplicationState, ApplicationStateManager, override_deployment_info
  from ray.serve._private.common import ApplicationStatus, DeploymentID, DeploymentStatus, DeploymentStatusInfo, DeploymentStatusTrigger
  from ray.serve._private.config import DeploymentConfig, ReplicaConfig
  from ray.serve._private.deploy_utils import deploy_args_to_deployment_info
  from ray.serve._private.deployment_info import DeploymentInfo
  from ray.serve._private.test_utils import MockKVStore
  from ray.serve._private.utils import get_random_string
  from ray.serve.exceptions import RayServeException
  from ray.serve.schema import DeploymentSchema, ServeApplicationSchema
label_desc: Use image node_id 7 for calling the TestDetermineAppStatus obj's underlying member method code with example usage: obj.test_manual_scale_num_replicas(get_deployments_statuses, mocked_application_state) without return types