code: def crop(self):
      try:
          self.image, self.num_tries = process_image(self.orig_im)
          self.crop_shape = self.image.shape
          return self.image
      except Exception as e:
          for frame in traceback.extract_tb(sys.exc_info()[2]):
              fname, lineno, fn, text = frame
              print("Error in %s on line %d" % (fname, lineno))
              print(e)
          self.err = e
          self.healthy = False
  
imports: import os
  import traceback
  import sys
  import cv2
  import numpy
  from PIL import Image
  from scipy.ndimage.filters import rank_filter
  import pytesseract
label_desc: Use image node_id 2 for calling the Page obj's underlying member method code with example usage: obj.crop() and returns: self