code: def colorValidator(value):
      """
      Version 3+.
  
      >>> colorValidator("0,0,0,0")
      True
      >>> colorValidator(".5,.5,.5,.5")
      True
      >>> colorValidator("0.5,0.5,0.5,0.5")
      True
      >>> colorValidator("1,1,1,1")
      True
  
      >>> colorValidator("2,0,0,0")
      False
      >>> colorValidator("0,2,0,0")
      False
      >>> colorValidator("0,0,2,0")
      False
      >>> colorValidator("0,0,0,2")
      False
  
      >>> colorValidator("1r,1,1,1")
      False
      >>> colorValidator("1,1g,1,1")
      False
      >>> colorValidator("1,1,1b,1")
      False
      >>> colorValidator("1,1,1,1a")
      False
  
      >>> colorValidator("1 1 1 1")
      False
      >>> colorValidator("1 1,1,1")
      False
      >>> colorValidator("1,1 1,1")
      False
      >>> colorValidator("1,1,1 1")
      False
  
      >>> colorValidator("1, 1, 1, 1")
      True
      """
      if not isinstance(value, str):
          return False
      parts = value.split(",")
      if len(parts) != 4:
          return False
      for part in parts:
          part = part.strip()
          converted = False
          try:
              part = int(part)
              converted = True
          except ValueError:
              pass
          if not converted:
              try:
                  part = float(part)
                  converted = True
              except ValueError:
                  pass
          if not converted:
              return False
          if part < 0:
              return False
          if part > 1:
              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 39 for calling a global function with example usage: colorValidator(value) and returns: True, False, False, False, False, False