Converts pointer address data into a NumPy array, which can be directly accessed by Python code.
Input Description
ptr: int, pointer address in the C language. It is the start address of the data that can be accessed.
shape: tuple, shape of the NumPy to be constructed.
type: int, data type of the data in ptr.
The following lists some common types: (For details about the types that are not listed, data type APIs in NumPy C-API, and the following types, see the NumPy manual.)