code: def test_clean_sync_directory(tmp_path, clear_runner):
      # given
      sync_directory = tmp_path / SYNC_DIRECTORY
      sync_directory.mkdir(parents=True, exist_ok=True)
  
      assert os.path.exists(sync_directory)
  
      # when
      clear_runner.clear(tmp_path)
  
      # then
      assert not os.path.exists(sync_directory)
  
file_path: neptune-client/tests/unit/neptune/new/cli/test_clear.py
imports: import os
  from unittest.mock import MagicMock
  import pytest
  from neptune.cli.clear import ClearRunner
  from neptune.cli.utils import get_qualified_name
  from neptune.constants import ASYNC_DIRECTORY, OFFLINE_DIRECTORY, SYNC_DIRECTORY
  from neptune.internal.container_type import ContainerType
  from neptune.internal.operation import Operation
  from tests.unit.neptune.new.cli.utils import generate_get_metadata_container, prepare_v1_container
label_desc: Use image node_id 5 for calling a global function with example usage: test_clean_sync_directory(tmp_path, clear_runner) without return types