code: def test_compute_config_invalid_ebs():
      compute_config = {
          "aws": {
              "BlockDeviceMappings": [
                  {
                      "DeviceName": "/dev/sda1",
                      "Ebs": {
                          "VolumeSize": 1000,
                      },
                  }
              ]
          }
      }
      assert validate_cluster_compute(compute_config)
  
      compute_config["aws"]["BlockDeviceMappings"][0]["Ebs"][
          "DeleteOnTermination"
      ] = False
  
      assert validate_cluster_compute(compute_config)
  
      compute_config["aws"]["BlockDeviceMappings"][0]["Ebs"][
          "DeleteOnTermination"
      ] = True
  
      assert not validate_cluster_compute(compute_config)
  
      compute_config["head_node_type"] = {}
      compute_config["head_node_type"][
          "aws_advanced_configurations"
      ] = {
          "BlockDeviceMappings": [
              {
                  "DeviceName": "/dev/sda1",
                  "Ebs": {
                      "VolumeSize": 1000,
                  },
              }
          ]
      }
  
      assert validate_cluster_compute(compute_config)
  
      compute_config["head_node_type"]["aws_advanced_configurations"][
          "BlockDeviceMappings"
      ][0]["Ebs"]["DeleteOnTermination"] = False
  
      assert validate_cluster_compute(compute_config)
  
      compute_config["head_node_type"]["aws_advanced_configurations"][
          "BlockDeviceMappings"
      ][0]["Ebs"]["DeleteOnTermination"] = True
  
      assert not validate_cluster_compute(compute_config)
  
      compute_config["worker_node_types"] = [{}]
      compute_config["worker_node_types"][0][
          "aws_advanced_configurations"
      ] = {
          "BlockDeviceMappings": [
              {
                  "DeviceName": "/dev/sda1",
                  "Ebs": {
                      "VolumeSize": 1000,
                  },
              }
          ]
      }
  
      assert validate_cluster_compute(compute_config)
  
      compute_config["worker_node_types"][0][
          "aws_advanced_configurations"
      ]["BlockDeviceMappings"][0]["Ebs"]["DeleteOnTermination"] = False
  
      assert validate_cluster_compute(compute_config)
  
      compute_config["worker_node_types"][0][
          "aws_advanced_configurations"
      ]["BlockDeviceMappings"][0]["Ebs"]["DeleteOnTermination"] = True
  
      assert not validate_cluster_compute(compute_config)
  
file_path: ray/release/ray_release/tests/test_config.py
imports: import sys
  import yaml
  import pytest
  from ray_release.test import Test
  from ray_release.config import read_and_validate_release_test_collection, validate_cluster_compute, load_schema_file, parse_test_definition, validate_test
  from ray_release.exception import ReleaseTestConfigError
label_desc: Use image node_id 3 for calling a global function with example usage: test_compute_config_invalid_ebs() without return types