docs: def write_dict_to_json(dictionary, path, **kwargs):
      """
      Write a dictionary to a json file.
      :param path: The relative path to save the dictionary to
      :param dictionary: The dictionary to get saved
      :param kwargs: optional additional parameters for dumper
      """
      result_string = json.dumps(dictionary, cls=JSONObjectEncoder,
                                 indent=4, check_circular=False, sort_keys=True, **kwargs)
      with open(path, 'w') as f:
          # We cannot write directly to the file, as otherwise the 'encode' method wouldn't be called
          f.write(result_string)