<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pixel_data(self):
 """ Returns the pixel data stored in the Image object. Returns ------- out : numpy.array The pixel data of the Image object. It returns a multi-dimensional numpy array, where the shape of the array represents the shape of the image (height, weight, channels). See Also -------- width, channels, height Examples -------- """


        from .. import extensions as _extensions
        data = _np.zeros((self.height, self.width, self.channels), dtype=_np.uint8)
        _extensions.image_load_to_numpy(self, data.ctypes.data, data.strides)
        if self.channels == 1:
            data = data.squeeze(2)
        return data