def get_decoder(registry=None):
if registry is None:<EOL><INDENT>registry = BaseNodeRegistry()<EOL><DEDENT>return partial(decode_ast, registry)<EOL>
Get a JSON decoding hook that shares a dynamic node registry between decoding calls