validate time_range parameter
validate_time_range(time_range)
A boolean if the parameter matches the Spotify Web API parameter range.
Optional. Over what time frame the affinities are computed.
Valid values: long_term (calculated from several years of data and including all new data
as it becomes available), medium_term
(approximately last 6 months),
short_term
(approximately last 4 weeks). Default: medium_term
.