class_docstr: History server class that is responsible for starting history server.
class_docstr_tok: ["History","server","class","that","is","responsible","for","starting","history","server","."]
code: def __init__(self, cli_args, image_uri, network_config):
      self.cli_args = cli_args
      self.image_uri = image_uri
      self.network_config = network_config
      self.run_history_server_command = (
          self._get_run_history_server_cmd()
      )
  
imports: from __future__ import absolute_import
  import json
  import logging
  import os.path
  import shutil
  import subprocess
  import tempfile
  import time
  import urllib.request
  from enum import Enum
  from io import BytesIO
  from urllib.parse import urlparse
  from copy import copy
  from typing import Union, List, Dict, Optional
  from sagemaker import image_uris, s3
  from sagemaker.local.image import _ecr_login_if_needed, _pull_image
  from sagemaker.processing import ProcessingInput, ProcessingOutput, ScriptProcessor
  from sagemaker.s3 import S3Uploader
  from sagemaker.session import Session
  from sagemaker.network import NetworkConfig
  from sagemaker.spark import defaults
  from sagemaker.utils import format_tags, Tags
  from sagemaker.workflow import is_pipeline_variable
  from sagemaker.workflow.pipeline_context import runnable_by_pipeline
  from sagemaker.workflow.entities import PipelineVariable
  from sagemaker.workflow.functions import Join
label_desc: Use image node_id 1 to create a new _HistoryServer object  with example: obj = _HistoryServer(cli_args, image_uri, network_config)