code: def test_history_server_down(mock_subprocess_call):
      history_server = _HistoryServer({}, "image_uri", "--network host")
  
      history_server.down()
  
      mock_subprocess_call.assert_has_calls(
          [
              call(["docker", "stop", "history_server"]),
              call(["docker", "rm", "history_server"]),
          ]
      )
  
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 34 for calling a global function with example usage: test_history_server_down(mock_subprocess_call) without return types