@staticmethod<EOL><INDENT>def to_seconds(value, time_unit):<DEDENT>
if isinstance(value, bool):<EOL><INDENT>raise TypeError<EOL><DEDENT>return float(value) * time_unit<EOL>
:param value: (Number), value to be translated to seconds
:param time_unit: Time duration in seconds
:return: Value of the value in seconds