code: def test_switch_organization_success(mock_response, capfd):
      PyGraphistry.org_name("success-org")
      out, err = capfd.readouterr()
      assert out == ""
  
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 5 for calling a global function with example usage: test_switch_organization_success(mock_response, capfd) without return types