def _get_pyface_backend():
    """Check the currently selected Pyface backend.

    Returns
    -------
    backend : str
        Name of the backend.
    result : 0 | 1 | 2
        0: the backend has been tested and works.
        1: the backend has not been tested.
        2: the backend not been tested.

    Notes
    -----
    See also http://docs.enthought.com/pyface/.
    """
    from traitsui.toolkit import toolkit
    from traits.etsconfig.api import ETSConfig
    toolkit()
    return ETSConfig.toolkit
