code: def to_seconds(value, time_unit):
          
          if isinstance(value, bool):
              # bool is a subclass of int. Don't let bool and float multiplication.
              raise TypeError
          return float(value) * time_unit
docs: :param value: (Number), value to be translated to seconds
          :param time_unit: Time duration in seconds
          :return: Value of the value in seconds