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 = {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
  
      # Deployment should be created without error.
      @serve.deployment(**deployment_options)
      def f():
          pass
  
imports: import itertools
  import random
  import sys
  from typing import Dict, List
  import pytest
  from ray import serve
  from ray.serve._private.config import DeploymentConfig
  from ray.serve.deployment import deployment_to_schema, schema_to_deployment
label_desc: Use image node_id 4 for calling the TestDeploymentOptions obj's underlying member method code with example usage: obj.test_nullable_options(option) without return types