code: def max_duration(self,value):
  		
  		if not value is None:
  			if not type(value) in [float, int]:
  				raise TypeError("max_duration needs to be specified as a number")
  			if value<1.0:
  				raise ValueError("max_duration needs to be greater than 1.0")
  			value = float(value)
  		self.__max_duration = value
docs: Sets the value of max duration
  
  		Parameters
  		----------
  		value : float
  			The value for max_duration
  
  		Raises
  		------
  		TypeError
  			If max_duration is not a number.
  		ValueError
  			If max_duration is smaller than 0.