code: def validate():
      
  
      errors = dict()
      for test in (test_architecture,
                   test_pyqt_availability,
                   test_pyblish_availability,
                   test_qtconf_availability,
                   test_qtconf_correctness,
                   test_qt_availability):
          try:
              test()
          except Exception as e:
              errors[test] = e
  
      if not errors:
          print("=" * 78)
          print()
          print(""" - Success!
  
  {exe} is well suited to run Pyblish QML""".format(exe=sys.executable))
          print()
          print("=" * 78)
  
          return True
  
      print("=" * 78)
      print()
      print(" - Failed")
      print()
      for test, error in errors.iteritems():
          print(test.__name__)
          print("    %s" % error)
      print()
      print("=" * 78)
  
      return False
docs: Validate compatibility with environment and Pyblish QML