code: def dump(self, data, stream=None):
          
          yaml_text = yaml.dump(
              data,
              default_flow_style=False,
              allow_unicode=True)
          return self.dump_raw(yaml_text, stream=stream)
docs: Encrypt data and print stdout or write to stream.