evaluate the boolean expression, if first three characters of sample equals to string of bytes '\xef\xbb\xbf\',
return sample [ : 3 ] == b'\xef\xbb\xbf' or sample . startswith ( codecs . BOM_UTF16_LE ) or sample . startswith ( codecs . BOM_UTF16_BE )