code: def construct_feed_data(data):
      """
      Construct the data to feed model.
      """
      datas = []
      labels = []
      for sample in data:
          if len(datas) < 16:
              labels.append([sample[-1]])
              datas.append(sample[1:-1])
          else:
              yield np.array(datas).astype(np.float32), np.array(
                  labels
              ).astype(np.int64)
              datas = []
              labels = []
      if len(datas) != 0:
          yield np.array(datas).astype(np.float32), np.array(
              labels
          ).astype(np.int64)
  
imports: import numpy
  import paddle
  import paddle.fluid
label_desc: Use image node_id 2 for calling a global function with example usage: construct_feed_data(data) without return types