code: def validate(self, value: Any, detail: bool = True) -> None:
      super().validate(value, detail)
  
      if isinstance(value, str):
          if len(value) == 0:
              msg = (
                  ""
                  if not detail
                  else "empty string is not a valid font size value"
              )
              raise ValueError(msg)
          elif not self._font_size_re.match(value):
              msg = (
                  ""
                  if not detail
                  else f"{value!r} is not a valid font size value"
              )
              raise ValueError(msg)
  
imports: from __future__ import annotations
  import logging
  import base64
  import datetime
  import re
  import tempfile
  from io import BytesIO
  from pathlib import Path
  from typing import Any, BinaryIO
  from ...util.serialization import convert_datetime_type
  from ..None import enums
  from .auto import Auto
  from .bases import Property
  from .container import Seq, Tuple
  from .datetime import Datetime, TimeDelta
  from .either import Either
  from .enum import Enum
  from .nullable import Nullable
  from .numeric import Float, Int
  from .primitive import String
  from .string import Regex
label_desc: Use image node_id 1 for calling the FontSize obj's underlying member method code with example usage: obj.validate(value, detail) without return types