def _is_valid_endpoint(endpoint):
return any([is_number(endpoint),<EOL>isinstance(endpoint, Timestamp),<EOL>isinstance(endpoint, Timedelta),<EOL>endpoint is None])<EOL>
helper for interval_range to check if start/end are valid types