code: def write_baseline_to_file(filename, data):
      
      with open(filename, 'w') as f:  # pragma: no cover
          f.write(format_baseline_for_output(data) + '\n')
docs: :type filename: str
      :type data: dict
      :rtype: None