code: def test_network_interface_conflict_keys():
      # If NetworkInterfaces are defined, SubnetId and SecurityGroupIds
      # can't be specified in the same node type config.
      conflict_kv_pairs = [
          ("SubnetId", "subnet-0000000"),
          ("SubnetIds", ["subnet-0000000", "subnet-1111111"]),
          ("SecurityGroupIds", ["sg-1234abcd", "sg-dcba4321"]),
      ]
      expected_error_msg = (
          "If NetworkInterfaces are defined, subnets and "
          "security groups must ONLY be given in each "
          "NetworkInterface."
      )
      for conflict_kv_pair in conflict_kv_pairs:
          config = helpers.load_aws_example_config_file(
              "example-network-interfaces.yaml"
          )
          head_name = config["head_node_type"]
          head_node_cfg = config["available_node_types"][head_name][
              "node_config"
          ]
          head_node_cfg[conflict_kv_pair[0]] = conflict_kv_pair[1]
          with pytest.raises(ValueError, match=expected_error_msg):
              helpers.bootstrap_aws_config(config)
  
imports: import copy
  from unittest.mock import Mock, patch
  import pytest
  from click.exceptions import ClickException
  import ray.tests.aws.utils.helpers
  import ray.tests.aws.utils.stubs
  from ray.autoscaler._private.aws.config import DEFAULT_AMI, _configure_subnet, _get_subnets_or_die, bootstrap_aws, log_to_cli
  from ray.autoscaler._private.aws.node_provider import AWSNodeProvider
  from ray.autoscaler._private.providers import _get_node_provider
  from ray.tests.aws.utils.constants import AUX_SG, AUX_SUBNET, CUSTOM_IN_BOUND_RULES, DEFAULT_CLUSTER_NAME, DEFAULT_INSTANCE_PROFILE, DEFAULT_KEY_PAIR, DEFAULT_LT, DEFAULT_SG, DEFAULT_SG_AUX_SUBNET, DEFAULT_SG_DUAL_GROUP_RULES, DEFAULT_SG_WITH_NAME, DEFAULT_SG_WITH_NAME_AND_RULES, DEFAULT_SG_WITH_RULES, DEFAULT_SG_WITH_RULES_AUX_SUBNET, DEFAULT_SUBNET
label_desc: Use image node_id 11 for calling a global function with example usage: test_network_interface_conflict_keys() without return types