code: def test_close(metadata_file_mock, _, disk_queue_mock):
      # given
      container_id = UniqueId(str(uuid4()))
      container_type = ContainerType.RUN
  
      # and
      metadata_file = metadata_file_mock.return_value
      disk_queue = disk_queue_mock.return_value
  
      # and
      processor = OfflineOperationProcessor(
          container_id=container_id,
          container_type=container_type,
          lock=MagicMock(),
      )
  
      # and
      processor.start()
  
      # when
      processor.close()
  
      # then
      disk_queue.close.assert_called_once()
      metadata_file.close.assert_called_once()
  
file_path: neptune-client/tests/unit/neptune/new/internal/operation_processors/test_offline_operation_processor.py
imports: from uuid import uuid4
  from mock import MagicMock, patch
  from neptune.internal.container_type import ContainerType
  from neptune.internal.id_formats import UniqueId
  from neptune.internal.operation_processors.offline_operation_processor import OfflineOperationProcessor
label_desc: Use image node_id 1 for calling a global function with example usage: test_close(metadata_file_mock, _, disk_queue_mock) without return types