<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_json(self, filepath, filename, writemode, content, indent):
 """ Helper for writing content to a file. :param filepath: path to file :param filename: name of file :param writemode: writemode used :param content: content to write :param indent: value for dump indent parameter. :return: Norhing """

        with open(os.path.join(filepath, filename), writemode) as fil:
            json.dump(content, fil, indent=indent)
            self.logger.info("Wrote content to file {}".format(filename))