def METHOD_NAME():
    text = request.values.get('text')
    page = request.values.get('page')
    should_refine = int(request.values.get('refine'))
    should_fill = int(request.values.get('fill'))
    context_size = int(request.values.get('context_size'))
    refined_imask =  get_mask_from_text(f'{text}', should_refine, should_fill, context_size)
    print('-' * 80)
    print('len(text):', len(text))
    print('len(imask):', len(refined_imask))
    return jsonify({'text': refined_imask, 'page': page})