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