code: def post_json(client, endpoint, data):
      return client.post(
          endpoint,
          content_type="application/json",
          data=json.dumps(data),
      )
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  import json
  import os
  import flask
  import flask.testing
  from allennlp.common.util import JsonDict
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.models.archival import load_archive
  from allennlp.predictors import Predictor
  from allennlp.service.server_simple import make_app
  from io import open
label_desc: Use image node_id 1 for calling a global function with example usage: post_json(client, endpoint, data) and returns: client