code: def apply_scale(self, scale):
          
          dimension = self.vertices.shape[1]
          matrix = np.eye(dimension + 1)
          matrix[:dimension, :dimension] *= scale
          self.apply_transform(matrix)
docs: Apply a transformation matrix to the current path in- place
  
          Parameters
          -----------
          scale : float or (3,) float
            Scale to be applied to mesh