<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 dataset along the indicated axis. 		Args: 			ordering (list of int):
 	The desired order along the axis 			axis (int):
					The axis along which to permute 		Returns: 			Nothing. 		"""

		if self._file.__contains__("tiles"):
			del self._file['tiles']

		ordering = list(np.array(ordering).flatten())  # Flatten the ordering, in case we got a column vector
		self.layers._permute(ordering, axis=axis)
		if axis == 0:
			self.row_attrs._permute(ordering)
			self.row_graphs._permute(ordering)
		if axis == 1:
			self.col_attrs._permute(ordering)
			self.col_graphs._permute(ordering)