code: def _validate_float(value):
      """Validate value is a float."""
      try:
          value = float(value)
      except ValueError as err:
          raise ValueError("Could not convert to float") from err
      return value
  
imports: import locale
  import logging
  import os
  import pprint
  import re
  import sys
  import warnings
  from collections.abc import MutableMapping
  from pathlib import Path
  from typing import Any, Dict
  from typing_extensions import Literal
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _validate_float(value) and returns: value