code: def test_extra_fields_invalid_ray_actor_options(self):
      # Undefined fields should be forbidden in the schema
  
      ray_actor_options_schema = {
          "runtime_env": {},
          "num_cpus": None,
          "num_gpus": None,
          "memory": None,
          "object_store_memory": None,
          "resources": {},
          "accelerator_type": None,
      }
  
      # Schema should be createable with valid fields
      RayActorOptionsSchema.parse_obj(ray_actor_options_schema)
  
      # Schema should NOT raise error when extra field is included
      ray_actor_options_schema["extra_field"] = None
      RayActorOptionsSchema.parse_obj(ray_actor_options_schema)
  
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 6 for calling the TestRayActorOptionsSchema obj's underlying member method code with example usage: obj.test_extra_fields_invalid_ray_actor_options() without return types