def imfrombytes(content, flag='<STR_LIT>'):
img_np = np.frombuffer(content, np.uint8)<EOL>flag = imread_flags[flag] if is_str(flag) else flag<EOL>img = cv2.imdecode(img_np, flag)<EOL>return img<EOL>
Read an image from bytes.

    Args:
        content (bytes): Image bytes got from files or other streams.
        flag (str): Same as :func:`imread`.

    Returns:
        ndarray: Loaded image array.