<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_stripe_api_version(version=None, validate=True):
 	""" 	Set the desired API version to use for Stripe requests. 	:param version: The version to set for the Stripe API. 	:type version: ``str`` 	:param validate: If True validate the value for the specified version). 	:type validate: ``bool`` 	"""

	version = version or get_stripe_api_version()

	if validate:
		valid = validate_stripe_api_version(version)
		if not valid:
			raise ValueError("Bad stripe API version: {}".format(version))

	stripe.api_version = version