<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dlpack_for_read(data):
 """Returns a reference view of NDArray that represents as DLManagedTensor until all previous write operations on the current array are finished. Parameters data: NDArray input data. Returns ------- PyCapsule (the pointer of DLManagedTensor) a reference view of NDArray that represents as DLManagedTensor. Examples -------- <class 'PyCapsule'> [[1. 1. 1.] [1. 1. 1.]] <NDArray 2x3 @cpu(0)> """

    data.wait_to_read()
    dlpack = DLPackHandle()
    check_call(_LIB.MXNDArrayToDLPack(data.handle, ctypes.byref(dlpack)))
    return ctypes.pythonapi.PyCapsule_New(dlpack, _c_str_dltensor, _c_dlpack_deleter)