def ValidatePrice(self, problems):
    if self.price == None:
      problems.MissingValue("price")
    elif not isinstance(self.price, float) and not isinstance(self.price, int):
      problems.InvalidValue("price", self.price)
    elif self.price < 0:
      problems.InvalidValue("price", self.price)
dataset/ETHPy150Open google/transitfeed/transitfeed/fareattribute.py/FareAttribute.ValidatePrice/original