code: def prepare_v1_container(
      *,
      container_type: ContainerType,
      path: Path,
      last_ack_version: Optional[int],
      trashed: Optional[bool] = False,
  ) -> ApiExperiment:
      is_offline = last_ack_version is None
  
      container = api_metadata_container(
          container_type, trashed=trashed
      )
  
      if is_offline:
          exp_path = (
              path
              / OFFLINE_DIRECTORY
              / f"{container.type.value}__{container.id}"
          )
      else:
          execution_id = "exec-0"
          exp_path = (
              path
              / ASYNC_DIRECTORY
              / f"{container.type.value}__{container.id}"
              / execution_id
          )
  
      _prepare_disk_queue(
          exp_path=exp_path,
          last_ack_version=last_ack_version,
      )
  
      return container
  
file_path: neptune-client/tests/unit/neptune/new/cli/utils.py
imports: import threading
  from pathlib import Path
  from typing import Optional
  from neptune.cli.utils import get_qualified_name
  from neptune.constants import ASYNC_DIRECTORY, OFFLINE_DIRECTORY
  from neptune.exceptions import MetadataContainerNotFound
  from neptune.internal.backends.api_model import ApiExperiment
  from neptune.internal.container_type import ContainerType
  from neptune.internal.disk_queue import DiskQueue
  from neptune.internal.utils.sync_offset_file import SyncOffsetFile
  from tests.unit.neptune.new.utils.api_experiments_factory import api_metadata_container, api_run
label_desc: Use image node_id 4 for calling a global function with example usage: prepare_v1_container() and returns: container