code: def write_version_directive(self, version_text):
      data = "%%YAML %s" % version_text
      if self.encoding:
          data = data.encode(self.encoding)
      self.stream.write(data)
      self.write_line_break()
  
imports: from .error import YAMLError
  from .events import *
label_desc: Use image node_id 52 for calling the Emitter obj's underlying member method code with example usage: obj.write_version_directive(version_text) without return types