docstr: Check that nullable options can be set to None.
docstr_tok: ["Check","that","nullable","options","can","be","set","to","None","."]
code: def test_nullable_options(self, option: str):
      """Check that nullable options can be set to None."""
  
      deployment_options = {"name": "test", option: None}
  
      # One of "num_replicas" or "autoscaling_config" must be provided.
      if option == "num_replicas":
          deployment_options["autoscaling_config"] = {
              "min_replicas": 1,
              "max_replicas": 5,
              "target_num_ongoing_requests_per_replica": 5,
          }
      elif option == "autoscaling_config":
          deployment_options["num_replicas"] = 5
  
      # Schema should be created without error.
      DeploymentSchema.parse_obj(deployment_options)
  
imports: import copy
  import json
  import logging
  import sys
  from typing import Dict, List, Optional, Union
  import pytest
  from ray import serve
  from ray._private.pydantic_compat import ValidationError
  from ray.serve.config import AutoscalingConfig
  from ray.serve.deployment import deployment_to_schema, schema_to_deployment
  from ray.serve.schema import DeploymentSchema, LoggingConfig, RayActorOptionsSchema, ServeApplicationSchema, ServeDeploySchema, ServeInstanceDetails
  from ray.serve.tests.common.remote_uris import TEST_DEPLOY_GROUP_PINNED_URI, TEST_MODULE_PINNED_URI
  from ray.util.accelerators.accelerators import NVIDIA_TESLA_P4, NVIDIA_TESLA_V100
label_desc: Use image node_id 8 for calling the TestDeploymentSchema obj's underlying member method code with example usage: obj.test_nullable_options(option) without return types