code: def load_float_list(s):
      if isinstance(s, List) and all(isinstance(x, float) for x in s):
          return s
      # replace spaces between float numbers with commas (regex101.com/r/C2705x/1)
      processed = re.sub(r"(?<=[\d.])\s*,?\s+(?=[+-]?[\d.])", ",", s)
      # remove dot not followed with a digit (regex101.com/r/goSmuG/1/)
      processed = re.sub(r"(?<=\d)\.(?![\d])", "", processed)
      try:
          parsed = json.loads(processed)
      except json.decoder.JSONDecodeError as e:
          raise ValueError(
              f"Unable to parse float list `{s}` (normalized to `{processed}`)"
          ) from e
      if not isinstance(parsed, list):
          raise ValueError(
              f"Expected float list for float feature, got {parsed}"
          )
      return [float(f) for f in parsed]
  
imports: import json
  import logging
  import re
  from typing import Any, Dict, List, Type, TypeVar
  from pytext.config.component import Component, ComponentType
  from pytext.data.utils import shard
  from pytext.utils.data import parse_slot_string, Slot
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 4 for calling a global function with example usage: load_float_list(s) and returns: unknown, s