import yaml


def get_data(file_path):
    """
    Loads the file from a location and returns the structure, the file is in YML
    and is converted to a dict
    :param file_path:
    :return: dict (treated as the same as JSON in python)
    """
    with open(file_path) as inf:
        content = yaml.load(inf, Loader=yaml.Loader)
    return content