code: def __init__(self, ds, thresh=384, index=0):
      def func(img):
          h, w, _ = img.shape
          if (h < thresh) or (w < thresh):
              return None
          else:
              return img
  
      super(RejectTooSmallImages, self).__init__(ds, func, index=index)
  
imports: import argparse
  import numpy
  import os
  import zipfile
  import cv2
  from tensorpack import LMDBSerializer, MapDataComponent, RNGDataFlow
label_desc: Use image node_id 1 to create a new RejectTooSmallImages object from inherited base classes: MapDataComponent with example: obj = RejectTooSmallImages(ds, thresh, index)