code: def _random_float(x):
      if len(x) != 2:
          msg = (
              "Range of random float should have two elements, got %d"
              % len(x)
          )
          logger.fatal(msg)
          raise ValueError(msg)
      return lambda: random.rand() * (x[1] - x[0]) + x[0]
  
file_path: auptimizer/src/aup/Proposer/RandomProposer.py
imports: import logging
  from numpy import random
  from six.moves import input
  from .AbstractProposer import AbstractProposer
  from ..utils import check_missing_key, set_default_keyvalue
label_desc: Use image node_id 2 for calling a global function with example usage: _random_float(x) and returns: function