import yaml


def get_schema(file):
    """Get an HMeta schema from file (raw object, without Model)

    Args:
        file (String): Object containing the schema on local disk

    Returns:
        Object: Raw object from YAML file
    """
    # Funciona Ok, exceto com a Noruega https://noyaml.com/

    with open(file) as f:

        data = yaml.safe_load(f)
        # data = yaml.safe_load_all(f)
        # print(data)
        return data