code: def test_register_with_only_personal_key_secret(capfd):
      with pytest.raises(Exception) as exc_info:
          PyGraphistry.register(
              personal_key_secret="only_personal_key_secret"
          )
  
      assert str(exc_info.value) == MSG_REGISTER_MISSING_PKEY_ID
  
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 4 for calling a global function with example usage: test_register_with_only_personal_key_secret(capfd) without return types