code: def dump_to_str(self, obj, **kwargs):
      kwargs.setdefault("Dumper", Dumper)
      return yaml.dump(obj, **kwargs)
  
imports: import yaml
  from .base import BaseFileHandler
label_desc: Use image node_id 3 for calling the YamlHandler obj's underlying member method code with example usage: obj.dump_to_str(obj) and returns: yaml