def load_metadata(path, lang=None):
    # There are the properties that are separated per language, we'll remove
    # that layr of abstraction on the fly and directly return the local value
    localized_keys = ['title']

    metadata_path = os.path.join(path, 'metadata.yaml')
    if os.path.exists(metadata_path):
        metadata = yaml.load(open(metadata_path))
        if lang:
            for localized_key in localized_keys:
                # Removing the language hierarchy level
                if metadata.get(localized_key, {}).get(lang):
                    metadata[localized_key] = metadata[localized_key][lang]
                else:
                    metadata[localized_key] = metadata[localized_key][DEFAULT_LANGUAGE]
        return metadata
    else:
        return {}
Decoding converts a string into a numerical type then shifts it by the
dataset/ETHPy150Open opendatasoft/ods-documentation/scripts/helpscout.py/load_metadata--crossover with--dataset/ETHPy150Open saymedia/python-simpledb/simpledb/models.py/NumberField.decode