def imread(filename):
im = cv2.imread(filename)<EOL>if im is None:<EOL><INDENT>raise RuntimeError("<STR_LIT>" % filename)<EOL><DEDENT>return im<EOL>
Like cv2.imread
This function will make sure filename exists