code: def dump_yaml(data, Dumper=_Dumper, default_flow_style=False):
      
      content = yaml.dump(data,
                          default_flow_style=default_flow_style,
                          Dumper=Dumper)
      return content.strip()
docs: Returns data as yaml-formatted string.