code: def make_analysator(f):
      """Return a static text analyser function that returns float values."""
  
      def text_analyse(text):
          try:
              rv = f(text)
          except Exception:
              return 0.0
          if not rv:
              return 0.0
          try:
              return min(1.0, max(0.0, float(rv)))
          except (ValueError, TypeError):
              return 0.0
  
      text_analyse.__doc__ = f.__doc__
      return staticmethod(text_analyse)
  
imports: import re
  import sys
label_desc: Use image node_id 6 for calling a global function with example usage: make_analysator(f) and returns: staticmethod, int, min, int, int