code: def get_ext_data(self):
      ext_data_num = 0
      for op in self.ops:
          if hasattr(op, "ext_data_num"):
              ext_data_num = getattr(op, "ext_data_num")
              break
      load_data_ops = self.ops[: self.ext_op_transform_idx]
      ext_data = []
  
      while len(ext_data) < ext_data_num:
          lmdb_idx, file_idx = self.data_idx_order_list[
              np.random.randint(len(self))
          ]
          lmdb_idx = int(lmdb_idx)
          file_idx = int(file_idx)
          sample_info = self.get_lmdb_sample_info(
              self.lmdb_sets[lmdb_idx]["txn"], file_idx
          )
          if sample_info is None:
              continue
          img, label = sample_info
          data = {"image": img, "label": label}
          data = transform(data, load_data_ops)
          if data is None:
              continue
          ext_data.append(data)
      return ext_data
  
imports: import numpy
  import os
  from paddle.io import Dataset
  import lmdb
  import cv2
  import string
  import six
  import pickle
  from PIL import Image
  from .imaug import transform, create_operators
label_desc: Use image node_id 5 for calling the LMDBDataSet obj's underlying member method code with example usage: obj.get_ext_data() and returns: ext_data