code: def _make_carpet(self, rescale_data):
          
  
          self.carpet = self._unroll_array(self.input_image, self.fixed_dim)
          if rescale_data:
              self.carpet = row_wise_rescale(self.carpet)
docs: Constructs the carpet from the input image.
  
          Optional rescaling of the data.