<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def guess_encoding(text, default=DEFAULT_ENCODING):
 """Guess string encoding. Given a piece of text, apply character encoding detection to guess the appropriate encoding of the text. """

    result = chardet.detect(text)
    return normalize_result(result, default=default)