<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _resize(self, size: Tuple[int, int], axis: int = None) -> None: 		"""Resize the dataset, or the specified axis. 		The dataset must be stored in chunked format; it can be resized up to the "maximum shape" (keyword maxshape) specified at creation time. 		The rank of the dataset cannot be changed. 		"Size" should be a shape tuple, or if an axis is specified, an integer. 		BEWARE: This functions differently than the NumPy resize() method! 		The data is not "reshuffled" to fit in the new shape; each axis is grown or shrunk independently. 		The coordinates of existing data are fixed. 		"""

		if self.name == "":
			self.ds._file['/matrix'].resize(size, axis)
		else:
			self.ds._file['/layers/' + self.name].resize(size, axis)