code: def test_log_directory(tmp_path):
      """Tests that Orion creates a log directory when the option is specified"""
  
      logging.shutdown()
  
      logdir = f"{tmp_path}/mydir"
      with pytest.raises(SystemExit):
          orion.core.cli.main(["-vvv", "--logdir", logdir])
  
      assert os.path.exists(logdir), "Log dir was created"
  
imports: import logging
  import os
  import pytest
  import orion.core.cli
label_desc: Use image node_id 2 for calling a global function with example usage: test_log_directory(tmp_path) without return types