class_docstr: Implementation of Config class for model configure.
  
  Args:
      config_file(str): configure filename, which is a yaml file.
      isCreate(bool): if true, create some neccessary directories to save models, log file and other outputs.
      isSave(bool): if true, save config_file in order to record the configure message.
docstr: Create some necessary directories to save some important files.
          
docstr_tok: ["Create","some","necessary","directories","to","save","some","important","files","."]
code: def create_necessary_dirs(self):
      """Create some necessary directories to save some important files."""
  
      time_stamp = datetime.datetime.now().strftime("%m%d_%H%M")
      self.config["trainer"]["args"]["log_dir"] = "".join(
          (
              self.config["trainer"]["args"]["log_dir"],
              self.config["task_name"],
              "/",
          )
      )  # , '.%s/' % (time_stamp)))
      self.config["trainer"]["args"]["save_dir"] = "".join(
          (
              self.config["trainer"]["args"]["save_dir"],
              self.config["task_name"],
              "/",
          )
      )  # , '.%s/' % (time_stamp)))
      self.config["trainer"]["args"]["output_dir"] = "".join(
          (
              self.config["trainer"]["args"]["output_dir"],
              self.config["task_name"],
              "/",
          )
      )  # , '.%s/' % (time_stamp)))
      #  if os.path.exists(self.config['trainer']['args']['save_dir']):
      #      input('save_dir is existed, do you really want to continue?')
  
      self.make_dir(self.config["trainer"]["args"]["log_dir"])
      self.make_dir(self.config["trainer"]["args"]["save_dir"])
      self.make_dir(self.config["trainer"]["args"]["output_dir"])
  
file_path: PGL/legacy/examples/GATNE/utils.py
imports: import datetime
  import os
  import yaml
  import random
  import shutil
label_desc: Use image node_id 3 for calling the Config obj's underlying member method code with example usage: obj.create_necessary_dirs() without return types