code: def test_create_deployment_api_server_hpa_conf(
      mock_create_deployment: MagicMock, cloudclient: BentoCloudClient
  ):
      mock_create_deployment.side_effect = f_create
      api_server = Resource.for_api_server(resource_instance="t3-micro")
      hpa_conf = Resource.for_hpa_conf(min_replicas=2, max_replicas=10)
      res = cloudclient.deployment.create(
          deployment_name="test-xxx",
          bento="iris_classifier:dqjxjyx2vweogcvj",
          api_server_config=api_server,
          hpa_conf=hpa_conf,
      )
      assert res == CreateDeploymentSchema(
          targets=[
              CreateDeploymentTargetSchema(
                  type=DeploymentTargetType.STABLE,
                  bento_repository="iris_classifier",
                  bento="dqjxjyx2vweogcvj",
                  config=DeploymentTargetConfig(
                      resource_instance="t3-micro", hpa_conf=hpa_conf
                  ),
              )
          ],
          mode=DeploymentMode.Function,
          name="test-xxx",
      )
  
imports: from __future__ import annotations
  import typing
  from datetime import datetime
  from unittest.mock import patch
  import attr
  import pytest
  from bentoml._internal.cloud.schemas import BentoFullSchema
  from bentoml._internal.cloud.schemas import BentoImageBuildStatus
  from bentoml._internal.cloud.schemas import BentoManifestSchema
  from bentoml._internal.cloud.schemas import BentoRepositorySchema
  from bentoml._internal.cloud.schemas import BentoUploadStatus
  from bentoml._internal.cloud.schemas import ClusterSchema
  from bentoml._internal.cloud.schemas import CreateDeploymentSchema
  from bentoml._internal.cloud.schemas import CreateDeploymentTargetSchema
  from bentoml._internal.cloud.schemas import DeploymentMode
  from bentoml._internal.cloud.schemas import DeploymentRevisionSchema
  from bentoml._internal.cloud.schemas import DeploymentRevisionStatus
  from bentoml._internal.cloud.schemas import DeploymentSchema
  from bentoml._internal.cloud.schemas import DeploymentStatus
  from bentoml._internal.cloud.schemas import DeploymentTargetCanaryRule
  from bentoml._internal.cloud.schemas import DeploymentTargetCanaryRuleType
  from bentoml._internal.cloud.schemas import DeploymentTargetConfig
  from bentoml._internal.cloud.schemas import DeploymentTargetHPAConf
  from bentoml._internal.cloud.schemas import DeploymentTargetRunnerConfig
  from bentoml._internal.cloud.schemas import DeploymentTargetSchema
  from bentoml._internal.cloud.schemas import DeploymentTargetType
  from bentoml._internal.cloud.schemas import LabelItemSchema
  from bentoml._internal.cloud.schemas import ResourceType
  from bentoml._internal.cloud.schemas import UpdateDeploymentSchema
  from bentoml._internal.cloud.schemas import UserSchema
  from bentoml.cloud import BentoCloudClient
  from bentoml.cloud import Resource
label_desc: Use image node_id 16 for calling a global function with example usage: test_create_deployment_api_server_hpa_conf(mock_create_deployment, cloudclient) without return types