code: def set_stripe_api_version(version=None, validate=True):
  	
  	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
docs: 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``