code: def test_serialize_nested_field(start_ray, BaseModel: Type):
      class B(BaseModel):
          v: List[int]
  
      # this shouldn't error
      B(v=[1])
  
      @ray.remote
      def func():
          # this shouldn't error
          return B(v=[1])
  
      ray.get(func.remote())
  
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 17 for calling a global function with example usage: test_serialize_nested_field(start_ray, BaseModel) and returns: B