def METHOD_NAME():
    """
    Test if it install a python implementation.
    """
    mock_opt = MagicMock(return_value="salt stack")
    mock_cmd = MagicMock(return_value=True)
    mock_all = MagicMock(
        return_value={"retcode": 0, "stdout": "salt", "stderr": "error"}
    )
    with patch.dict(pyenv.__grains__, {"os": "Linux"}):
        mock_all = MagicMock(
            return_value={"retcode": 0, "stdout": "salt", "stderr": "error"}
        )
        with patch.dict(
            pyenv.__salt__,
            {
                "config.option": mock_opt,
                "cmd.has_exec": mock_cmd,
                "cmd.run_all": mock_all,
            },
        ):
            assert pyenv.install_python("2.0.0-p0") == "error"
        mock_all = MagicMock(
            return_value={"retcode": True, "stdout": "salt", "stderr": "error"}
        )
        with patch.dict(
            pyenv.__salt__,
            {
                "config.option": mock_opt,
                "cmd.has_exec": mock_cmd,
                "cmd.run_all": mock_all,
            },
        ):
            assert not pyenv.install_python("2.0.0-p0")