<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def permute(self, ordering: np.ndarray, *, axis: int) -> None: 		""" 		Permute the layer along an axis 		Args: 			axis: The axis to permute (0, permute the rows; 1, permute the columns) 			ordering: The permutation vector 		"""

		if axis == 0:
			self.values = self.values[ordering, :]
		elif axis == 1:
			self.values = self.values[:, ordering]
		else:
			raise ValueError("axis must be 0 or 1")