code: def test_serialize_serve_dataclass(start_ray, BaseModel: Type):
      @dataclass
      class BackendMetadata:
          is_blocking: bool = True
          autoscaling_config: Optional[Dict[str, Any]] = None
  
      class BackendConfig(BaseModel):
          internal_metadata: BackendMetadata = BackendMetadata()
  
      ray.get(ray.put(BackendConfig()))
  
      @ray.remote
      def consume(f):
          pass
  
      ray.get(consume.remote(BackendConfig()))
  
imports: from dataclasses import dataclass
  from typing import Any, Dict, List, Optional, Type
  import os
  import sys
  import pytest
  from fastapi import FastAPI
  import ray
  from ray.tests.pydantic_module import User, app, user, closure
label_desc: Use image node_id 16 for calling a global function with example usage: test_serialize_serve_dataclass(start_ray, BaseModel) without return types