code: def validate_request_type(
      json_data: Dict[str, Any], request_type: dataclass
  ) -> Any:
      return request_type(**json_data)
  
imports: import asyncio
  import json
  import time
  from dataclasses import dataclass, replace, asdict
  from enum import Enum
  from pathlib import Path
  from typing import Any, Dict, Optional, Tuple, Union
  from ray._private import ray_constants
  from ray._private.gcs_utils import GcsAioClient
  from ray._private.runtime_env.packaging import parse_uri
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 3 for calling a global function with example usage: validate_request_type(json_data, request_type) and returns: request_type