<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def convert(price, currency):
 """Shorthand function converts a price object instance of a source currency to target currency :param price: the price value :param type: decimal :param currency: target ISO-4217 currency code :param type: str :returns: converted price instance :rtype: ``Price`` """

    # If price currency and target currency is same
    # return given currency as is
    value = convert_value(price.value, price.currency, currency)
    return Price(value, currency)