code: def setup_api():
      class Decoder(JSONDataBodyDecoder):
          """This is a custom JSON decoder class that precedes the pipeline's transformation."""
  
          def decode(self, data_inputs):
              """
              Transform a JSON list object into an np.array object.
  
              :param data_inputs: json object
              :return: np array for data inputs
              """
              return np.array(data_inputs)
  
      class Encoder(JSONDataResponseEncoder):
          """This is a custom JSON response encoder class for converting the pipeline's transformation outputs."""
  
          def encode(self, data_inputs) -> dict:
              """
              Convert predictions to a dict for creating a JSON Response object.
  
              :param data_inputs:
              :return:
              """
              return {"predictions": np.array(data_inputs).tolist()}
  
      class Multiplier(BaseTransformer):
          def transform(self, data_inputs):
              return 2 * data_inputs
  
      app = FlaskRestApiWrapper(
          json_decoder=Decoder(),
          wrapped=Multiplier(),
          json_encoder=Encoder(),
      ).get_app()
  
      app.testing = True
  
      test_client = app.test_client()
  
      return test_client
  
imports: import numpy
  from neuraxle.rest.flask import JSONDataResponseEncoder, JSONDataBodyDecoder, FlaskRestApiWrapper
  from neuraxle.base import BaseTransformer
label_desc: Use image node_id 1 for calling a global function with example usage: setup_api() and returns: test_client, np, dict, unknown