<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate_price(price):
 	""" validation checks for price argument """

	if isinstance(price, str):
		try:
			price = int(price)
		except ValueError: # fallback if convert to int failed
			price = float(price)
	if not isinstance(price, (int, float)):
		raise TypeError('Price should be a number: ' + repr(price))
	return price