code: def is_edit_valid(edit):
      text = edit.text()
      state = edit.validator().validate(text, 0)[0]
  
      return state == QtGui.QDoubleValidator.Acceptable
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import copy
  import datetime
  import warnings
  import six
  from matplotlib import colors
  from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
label_desc: Use image node_id 5 for calling a global function with example usage: is_edit_valid(edit) and returns: unknown