code: def test_training_with_additional_hyperparameters(
      sagemaker_local_session,
      chainer_latest_version,
      chainer_latest_py_version,
  ):
      script_path = os.path.join(DATA_DIR, "chainer_mnist", "mnist.py")
      data_path = os.path.join(DATA_DIR, "chainer_mnist")
  
      chainer = Chainer(
          entry_point=script_path,
          role="SageMakerRole",
          instance_count=1,
          instance_type="local",
          framework_version=chainer_latest_version,
          py_version=chainer_latest_py_version,
          sagemaker_session=sagemaker_local_session,
          hyperparameters={"epochs": 1},
          use_mpi=True,
          num_processes=2,
          process_slots_per_host=2,
          additional_mpi_options="-x NCCL_DEBUG=INFO",
      )
  
      train_input = "file://" + os.path.join(data_path, "train")
      test_input = "file://" + os.path.join(data_path, "test")
  
      chainer.fit({"train": train_input, "test": test_input})
  
file_path: sagemaker-python-sdk/tests/integ/test_chainer.py
imports: from __future__ import absolute_import
  import os
  import numpy
  import pytest
  from sagemaker.chainer.estimator import Chainer
  from sagemaker.chainer.model import ChainerModel
  from sagemaker.utils import unique_name_from_base
  from tests.integ import DATA_DIR, TRAINING_DEFAULT_TIMEOUT_MINUTES
  from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
label_desc: Use image node_id 3 for calling a global function with example usage: test_training_with_additional_hyperparameters(sagemaker_local_session, chainer_latest_version, chainer_latest_py_version) without return types