<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def shuffle_batch(self, texts, labels= None, seed= None):
 		"""Shuffle a list of samples, as well as the labels if specified 		Parameters 		texts: list-like 			List of samples to shuffle 		labels: list-like (optional) 			List of labels to shuffle, should be correspondent to the samples given 		seed: int 			The seed of the pseudo random number generator to use for shuffling 		Returns 		------- 		texts: list 			List of shuffled samples (texts parameters) 		labels: list (optional) 			List of shuffled labels. This will only be returned when non-None 			labels is passed 		"""

		if seed!=None:  random.seed(seed)
		index_shuf= list(range(len(texts)))
		random.shuffle(index_shuf)
		texts= [texts[x] for x in index_shuf]
		if labels==None:  return texts
		labels= [labels[x] for x in index_shuf]
		return texts, labels