<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def WriteFileHash(self, path, hash_value):
 """Writes the file path and hash to file. Args: path (str):
 path of the file. hash_value (str):
 message digest hash calculated over the file data. """

    string = '{0:s}\t{1:s}\n'.format(hash_value, path)

    encoded_string = self._EncodeString(string)
    self._file_object.write(encoded_string)