<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_suprasegmental(char, strict=True):
 	""" 	Check whether the character is a suprasegmental according to the IPA spec. 	This includes tones, word accents, and length markers. 	In strict mode return True only if the diacritic is part of the IPA spec. 	"""

	if (char in chart.suprasegmentals) or (char in chart.lengths):
		return True

	return is_tone(char, strict)