import yaml


def load_yaml(yml_path):
    """Load parameter from yaml configuration file.
    
    Args:
        yml_path (string): Path to yaml configuration file
    Returns:
        A dictionary with parameters for cluster.
    """

    with open(yml_path, 'r') as stream:
        data_loaded = yaml.safe_load(stream)
    return data_loaded