code: def _test_parameter_averaging(model_path: str):
      """
      Runs parameter averaging with all available strategies
      """
      for strategy in C.AVERAGE_CHOICES:
          points = sockeye.average.find_checkpoints(
              model_path=model_path,
              size=4,
              strategy=strategy,
              metric=C.PERPLEXITY,
          )
          assert len(points) > 0
          averaged_params = sockeye.average.average(points)
          assert averaged_params
  
imports: import logging
  import os
  import platform
  import sys
  from tempfile import TemporaryDirectory
  from typing import List
  from unittest.mock import patch
  import pytest
  import torch
  import sockeye.average
  import sockeye.checkpoint_decoder
  import sockeye.evaluate
  from sockeye import constants
  from sockeye.config import Config
  from sockeye.model import load_model
  from sockeye.test_utils import run_train_translate, tmp_digits_dataset
  from test.common import check_train_translate
label_desc: Use image node_id 4 for calling a global function with example usage: _test_parameter_averaging(model_path) without return types