import yaml


def readYAMLFile(path: str):
    """
    Read data from a YAML file
    """
    with open(path, "r") as file:
        # FullLoader handles the conversion from YAML scalar values to
        # Python dictionary format
        data = yaml.load(file, Loader=yaml.FullLoader)
    return data