docs: def generate_yaml_file(filename, contents):
      """Creates a yaml file with the given content."""
      with open(filename, 'w') as file:
          file.write(yaml.dump(contents, default_flow_style=False))