code: def decimal_to_float(x):
      """Cast Decimal values to float"""
      if isinstance(x, Decimal):
          return float(x)
      return x
  
imports: from decimal import Decimal
label_desc: Use image node_id 4 for calling a global function with example usage: decimal_to_float(x) and returns: x, float