code: def _decoded_matrix_region(decoder, region, corrections):
      
      message = dmtxDecodeMatrixRegion(decoder, region, corrections)
      try:
          yield message
      finally:
          if message:
              dmtxMessageDestroy(byref(message))
docs: A context manager for `DmtxMessage`, created and destoyed by
      `dmtxDecodeMatrixRegion` and `dmtxMessageDestroy`.
  
      Args:
          decoder (POINTER(DmtxDecode)):
          region (POINTER(DmtxRegion)):
          corrections (int):
  
      Yields:
          DmtxMessage: The message.