code: def test_metadata(metadata_file_mock, _, __):
      # given
      container_id = UniqueId(str(uuid4()))
      container_type = ContainerType.RUN
  
      # when
      OfflineOperationProcessor(
          container_id=container_id,
          container_type=container_type,
          lock=MagicMock(),
      )
  
      # then
      metadata = metadata_file_mock.call_args_list[0][1]["metadata"]
      assert metadata["mode"] == "offline"
      assert metadata["containerType"] == ContainerType.RUN
      assert metadata["containerId"] == container_id
  
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 3 for calling a global function with example usage: test_metadata(metadata_file_mock, _, __) without return types