code: def pixel_data(self):
          
  
          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
docs: 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
          --------
          >>> img = turicreate.Image('https://static.turi.com/datasets/images/sample.jpg')
          >>> image_array = img.pixel_data