code: def test_switch_organization_not_exist(mock_response, capfd):
      org_name = "not-exist-org"
      with pytest.raises(Exception) as exc_info:
          PyGraphistry.org_name(org_name)
  
      assert str(exc_info.value) == "Failed to switch organization"
  
file_path: pygraphistry/graphistry/tests/test_pygraphistry.py
imports: import unittest, pytest
  from mock import patch
  from graphistry.pygraphistry import PyGraphistry
  from graphistry.messages import MSG_REGISTER_MISSING_PASSWORD, MSG_REGISTER_MISSING_USERNAME, MSG_REGISTER_MISSING_PKEY_SECRET, MSG_REGISTER_MISSING_PKEY_ID, MSG_SWITCH_ORG_SUCCESS, MSG_SWITCH_ORG_NOT_FOUND, MSG_SWITCH_ORG_NOT_PERMITTED
label_desc: Use image node_id 6 for calling a global function with example usage: test_switch_organization_not_exist(mock_response, capfd) without return types