code: def prepare_v0_run(*, path: Path, last_ack_version: Optional[int]):
      is_offline = last_ack_version is None
  
      run = api_run()
  
      if is_offline:
          exp_path = path / OFFLINE_DIRECTORY / run.id
      else:
          execution_id = "exec-0"
          exp_path = path / ASYNC_DIRECTORY / run.id / execution_id
      _prepare_disk_queue(
          exp_path=exp_path,
          last_ack_version=last_ack_version,
      )
      return run
  
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 5 for calling a global function with example usage: prepare_v0_run() and returns: run