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: Get the configure hyperparameters from yaml file.
          
docstr_tok: ["Get","the","configure","hyperparameters","from","yaml","file","."]
code: def get_config_from_yaml(self, yaml_file):
      """Get the configure hyperparameters from yaml file."""
      try:
          with open(yaml_file, "r") as f:
              config = yaml.load(f)
      except Exception:
          raise IOError("Error in parsing config file '%s'" % yaml_file)
  
      return config
  
file_path: PGL/legacy/examples/metapath2vec/utils.py
imports: import datetime
  import os
  import yaml
  import random
  import shutil
label_desc: Use image node_id 2 for calling the Config obj's underlying member method code with example usage: obj.get_config_from_yaml(yaml_file) and returns: config