code: def get(self):
      resp = []
  
      for idx, model in INFERENCERS.items():
          # TODO UI still relies on the old prediction_type attribute, but we should switch this to inferencer.task_type
          prediction_type = model.model.prediction_heads[0].model_type
  
          _res = {
              "id": idx,
              "name": model.name,
              "prediction_type": prediction_type,
              "language": model.language,
          }
          resp.append(_res)
  
      return resp
  
file_path: FARM/farm/inference_rest_api.py
imports: import json
  import logging
  from pathlib import Path
  import numpy
  from flask import Flask, request, make_response
  from flask_cors import CORS
  from flask_restplus import Api, Resource
  from farm.infer import Inferencer
label_desc: Use image node_id 1 for calling the ModelListEndpoint obj's underlying member method code with example usage: obj.get() and returns: resp