code: def test_get_run_history_server_cmd():
      args = {
          "AWS_ACCESS_KEY_ID": "123",
          "AWS_SECRET_ACCESS_KEY": "456",
          "AWS_SESSION_TOKEN": "789",
          "event_logs_s3_uri": "s3://bucket",
          "remote_domain_name": "domain",
      }
  
      history_server = _HistoryServer(
          args, "image_uri", "--network host"
      )
      result = history_server._get_run_history_server_cmd()
      expected_cmd = (
          "docker run --env AWS_ACCESS_KEY_ID=123 --env AWS_SECRET_ACCESS_KEY=456 "
          "--env AWS_SESSION_TOKEN=789 --name history_server --network host --entrypoint "
          "smspark-history-server image_uri --event-logs-s3-uri s3://bucket --remote-domain-name domain"
      )
  
      assert result == expected_cmd
  
imports: from __future__ import absolute_import
  import pathlib
  import subprocess
  import tempfile
  from io import BytesIO
  from typing import Generator
  from unittest.case import TestCase
  from unittest.mock import MagicMock, Mock, call, mock_open, patch
  import pytest
  from sagemaker.processing import ProcessingInput, ProcessingOutput
  from sagemaker.session_settings import SessionSettings
  from sagemaker.spark.processing import PySparkProcessor, SparkJarProcessor, _SparkProcessorBase, _HistoryServer, FileType, SparkConfigUtils
label_desc: Use image node_id 35 for calling a global function with example usage: test_get_run_history_server_cmd() without return types