code: def get_price_as_price(reward):
          
          if isinstance(reward, Price):
              final_price = reward
          else:
              final_price = Price(reward)
          return final_price
docs: Returns a Price data structure from either a float or a Price