code: def fontInfoWOFFMetadataExtensionNameValidator(value):
      """
      Version 3+.
      """
      dictPrototype = {
          "text": (str, True),
          "language": (str, False),
          "dir": (str, False),
          "class": (str, False),
      }
      if not genericDictValidator(value, dictPrototype):
          return False
      if "dir" in value and value.get("dir") not in ("ltr", "rtl"):
          return False
      return True
  
imports: import calendar
  from io import open
  import fs.base
  import fs.osfs
  from collections.abc import Mapping
  from fontTools.ufoLib.utils import numberTypes
label_desc: Use image node_id 32 for calling a global function with example usage: fontInfoWOFFMetadataExtensionNameValidator(value) and returns: True, False, False