code: def _checkTimeValue( timevalue, maxvalue ):   
      
      if maxvalue is None:
          raise TypeError('The maxvalue (for the time value) must not be None!')
      minimalmodbus._checkNumerical(timevalue, minvalue=0, maxvalue=maxvalue, description='time value')
docs: Check that the given timevalue is valid.
      
      Args:
          * timevalue (numerical): The time value to be checked. Must be positive.
          * maxvalue (numerical): Upper limit for time value. Must be positive.
          
      Raises:
          TypeError, ValueError