class_docstr: Handle the lifecycle and configuration of a local container execution.
  
  This class is responsible for creating the directories and configuration
  files that the docker containers will use for either training or serving.
class_docstr_tok: ["Handle","the","lifecycle","and","configuration","of","a","local","container","execution",".","This","class","is","responsible","for","creating","the","directories","and","configuration","files","that","the","docker","containers","will","use","for","either","training","or","serving","."]
docstr: Write the config files for the training containers.
  
  This method writes the hyperparameters, resources and input data
  configuration files.
  
  Returns: None
  
  Args:
      host (str): Host to write the configuration for
      hyperparameters (dict): Hyperparameters for training.
      input_data_config (dict): Training input channels to be used for
          training.
docstr_tok: ["Write","the","config","files","for","the","training","containers",".","This","method","writes","the","hyperparameters",",","resources","and","input","data","configuration","files",".","Returns",":","None","Args",":","host","(","str",")",":","Host","to","write","the","configuration","for","hyperparameters","(","dict",")",":","Hyperparameters","for","training",".","input_data_config","(","dict",")",":","Training","input","channels","to","be","used","for","training","."]
code: def write_config_files(
      self, host, hyperparameters, input_data_config
  ):
      """Write the config files for the training containers.
  
      This method writes the hyperparameters, resources and input data
      configuration files.
  
      Returns: None
  
      Args:
          host (str): Host to write the configuration for
          hyperparameters (dict): Hyperparameters for training.
          input_data_config (dict): Training input channels to be used for
              training.
      """
      config_path = os.path.join(
          self.container_root, host, "input", "config"
      )
  
      resource_config = {"current_host": host, "hosts": self.hosts}
  
      json_input_data_config = {}
      for c in input_data_config:
          channel_name = c["ChannelName"]
          json_input_data_config[channel_name] = {
              "TrainingInputMode": "File"
          }
          if "ContentType" in c:
              json_input_data_config[channel_name]["ContentType"] = c[
                  "ContentType"
              ]
  
      _write_json_file(
          os.path.join(config_path, "hyperparameters.json"),
          hyperparameters,
      )
      _write_json_file(
          os.path.join(config_path, "resourceconfig.json"),
          resource_config,
      )
      _write_json_file(
          os.path.join(config_path, "inputdataconfig.json"),
          json_input_data_config,
      )
  
imports: from __future__ import absolute_import, annotations
  import base64
  import copy
  import errno
  import json
  import logging
  import os
  import platform
  import random
  import re
  import shlex
  import shutil
  import string
  import subprocess
  import sys
  import tarfile
  import tempfile
  from distutils.spawn import find_executable
  from threading import Thread
  from typing import Dict, List
  from six.moves.urllib.parse import urlparse
  import sagemaker
  from sagemaker.config.config_schema import CONTAINER_CONFIG, LOCAL
  import sagemaker.local.data
  import sagemaker.local.utils
  import sagemaker.utils
label_desc: Use image node_id 9 for calling the _SageMakerContainer obj's underlying member method code with example usage: obj.write_config_files(host, hyperparameters, input_data_config) without return types