in deploy_code/multipagepdfa2i_analyzepdf/clean_data.py [0:0]
def get_key_value_set(data):
dict_key_value = {}
for block in data["Blocks"]:
if block["BlockType"] == "KEY_VALUE_SET" and "Relationships" in block:
dict_key_value[block["Id"]] = {
"Relationships": block["Relationships"],
"EntityTypes": block["EntityTypes"]
}
return dict_key_value