<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_hash_from_str(hsh, str_input):
 """ Convert a str to object supporting buffer API and update a hash with it. """

    byte_input = str(str_input).encode("UTF-8")
    hsh.update(byte_input)