def create_schema_for_required_keys(keys):
 schema = {x: [not_missing] for x in keys}
 return schema

def create_schema_for_required_keys ( keys ) : schema = { x : [ not_missing ] for x in keys } return schema
helper function that creates a schema definition where each key from keys is validated against not_missing .