code: def get_tensor_data_by_index(self, tensor_idx):
      for i, tensor in enumerate(
          self.models["subgraphs"][0]["tensors"]
      ):
          if i == tensor_idx:
              if not tensor.get("type"):
                  tensor["type"] = "FLOAT32"
              dtype = DTYPES.get(tensor["type"], np.float32)
              buffer_idx = tensor["buffer"]
              data = self.models["buffers"][buffer_idx]["data"]
              data = bytearray(data)  # list to bytearray
              data = np.frombuffer(
                  data, dtype=dtype
              )  # bytearray to ndarray
              data = np.reshape(data, tensor["shape"])
              return data
  
imports: import numpy
  import tensorflow
  import tqdm
label_desc: Use image node_id 2 for calling the QuantizationConverter obj's underlying member method code with example usage: obj.get_tensor_data_by_index(tensor_idx) and returns: data