import yaml


def load_yaml(path):
    """Load a YAML file

    Args:
        path (string): The directory path for the federation plan (FL Plan)

    Returns:
        A YAML object of the federation plan.

    """
    plan = None
    with open(path, 'r') as f:
        plan = yaml.safe_load(f.read())
    return plan