def batch_read_file_in_stream(image, mode, custom_headers:nil)
      response = batch_read_file_in_stream_async(image, mode, custom_headers:custom_headers).value!
      nil
    end
def batch_read_file_in_stream(image, mode, custom_headers:nil)
      response = batch_read_file_in_stream_async(image, mode, custom_headers:custom_headers).value!
      nil
    end
Use this interface to get the result of a Read Document operation, employing
 the state-of-the-art Optical Character Recognition (OCR) algorithms optimized
 for text-heavy documents. When you use the Read Document interface, the
 response contains a field called "Operation-Location". The
 "Operation-Location" field contains the URL that you must use for your "Get
 Read Result operation" to access OCR results.​

 @param image An image stream.
 @param mode [TextRecognitionMode] Type of text to recognize. Possible values
 include: 'Handwritten', 'Printed'
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.