class_docstr: Implementation. Captures batches in KServe v2 protocol format, returns
  also in FServing v2 protocol format.
class_docstr_tok: ["Implementation",".","Captures","batches","in","KServe","v2","protocol","format",",","returns","also","in","FServing","v2","protocol","format","."]
docstr: Joins the instances of a batch of JSON objects
docstr_tok: ["Joins","the","instances","of","a","batch","of","JSON","objects"]
code: def _batch_from_json(self, rows):
      """
      Joins the instances of a batch of JSON objects
      """
      logger.debug("Parse input data %s", rows)
      body_list = [
          body_list.get("data") or body_list.get("body")
          for body_list in rows
      ]
      data_list = self._from_json(body_list)
      return data_list
  
file_path: serve/ts/torch_handler/request_envelope/kservev2.py
imports: import json
  import logging
  import numpy
  from .base import BaseEnvelope
label_desc: Use image node_id 2 for calling the KServev2Envelope obj's underlying member method code with example usage: obj._batch_from_json(rows) and returns: data_list