code: def get_yaml_config(config_path):
      
      config_path = os.path.expanduser(config_path)
      if not os.path.isfile(config_path):
          raise IpaUtilsException(
              'Config file not found: %s' % config_path
          )
  
      with open(config_path, 'r') as f:
          config = yaml.safe_load(f)
      return config
docs: Load yaml config file and return dictionary.
  
      Todo:
          * This will need refactoring similar to the test search.