code: def set_deployment_deleted(self, id: str):
      if not self.deployment_infos[id]:
          raise ValueError(
              f"Tried to mark deployment {id} as deleted, but {id} not found"
          )
      if not self.deleting[id]:
          raise ValueError(
              f"Tried to mark deployment {id} as deleted, but delete_deployment()"
              f"hasn't been called for {id} yet"
          )
  
      del self.deployment_infos[id]
      del self.deployment_statuses[id]
      del self.deleting[id]
  
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 10 for calling the MockDeploymentStateManager obj's underlying member method code with example usage: obj.set_deployment_deleted(id) without return types