<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(text, path):
 """Writer text to file with utf-8 encoding. Usage:: or """

    with open(path, "wb") as f:
        f.write(text.encode("utf-8"))