code: def prevent_nan_values(
      cls, metadata: Optional[Dict[str, Any]]
  ) -> Optional[Dict[str, Any]]:
      if metadata is None:
          return metadata
  
      for k, v in metadata.items():
          if v != v:
              raise ValueError(
                  f"NaN is not allowed as metadata value, found NaN for key {k!r}"
              )
  
      return {k: v for k, v in metadata.items() if v == v}
  
file_path: argilla/src/argilla/server/schemas/v1/records.py
imports: from datetime import datetime
  from typing import Any, Dict, List, Optional
  from uuid import UUID
  from argilla.server.models import ResponseStatus
  from argilla.server.pydantic_v1 import BaseModel, Field, validator
  from argilla.server.schemas.base import UpdateSchema
  from argilla.server.schemas.v1.suggestions import SuggestionCreate
label_desc: Use image node_id 1 for calling the RecordUpdate obj's underlying member method code with example usage: obj.prevent_nan_values(cls, metadata) and returns: unknown, metadata