def convert_img_to_png_bytes()

in clean_and_create/load_data.py [0:0]


def convert_img_to_png_bytes(img):
    with BytesIO() as buffer:
        img.save(buffer, format='PNG')
        return buffer.getvalue()