code: def write_options_to_YAML(self, filename):
          
          fd = open(filename, "w")
          yaml.dump(_options_to_dict(self.gc), fd, default_flow_style=False)
          fd.close()
docs: Writes the options in YAML format to a file.
  
          :param str filename: Target file to write the options.