code: def checkMain():
    
    try:
      checkImportBindingsInstalled()
    except ImportError as e:
      print ("Could not import nupic.bindings. It must be installed before use. "
             "Error message:")
      print e.message
      return
  
    try:
      checkImportBindingsExtensions()
    except ImportError as e:
      print ("Could not import C extensions for nupic.bindings. Make sure that "
             "the package was properly installed. Error message:")
      print e.message
      return
  
    print "Successfully imported nupic.bindings."
docs: This script performs two checks. First it tries to import nupic.bindings
    to check that it is correctly installed. Then it tries to import the C
    extensions under nupic.bindings. Appropriate user-friendly status messages
    are printed depend on the outcome.