code: def write_double_quoted(self, text, split=True):
      self.write_indicator('"', True)
      start = end = 0
      while end <= len(text):
          ch = None
          if end < len(text):
              ch = text[end]
          if (
              ch is None
              or ch in '"\\\x85\u2028\u2029\uFEFF'
              or not (
                  "\x20" <= ch <= "\x7E"
                  or (
                      self.allow_unicode
                      and (
                          "\xA0" <= ch <= "\uD7FF"
                          or "\uE000" <= ch <= "\uFFFD"
                      )
                  )
              )
          ):
              if start < end:
                  data = text[start:end]
                  self.column += len(data)
                  if self.encoding:
                      data = data.encode(self.encoding)
                  self.stream.write(data)
                  start = end
              if ch is not None:
                  if ch in self.ESCAPE_REPLACEMENTS:
                      data = "\\" + self.ESCAPE_REPLACEMENTS[ch]
                  elif ch <= "\xFF":
                      data = "\\x%02X" % ord(ch)
                  elif ch <= "\uFFFF":
                      data = "\\u%04X" % ord(ch)
                  else:
                      data = "\\U%08X" % ord(ch)
                  self.column += len(data)
                  if self.encoding:
                      data = data.encode(self.encoding)
                  self.stream.write(data)
                  start = end + 1
          if (
              0 < end < len(text) - 1
              and (ch == " " or start >= end)
              and self.column + (end - start) > self.best_width
              and split
          ):
              data = text[start:end] + "\\"
              if start < end:
                  start = end
              self.column += len(data)
              if self.encoding:
                  data = data.encode(self.encoding)
              self.stream.write(data)
              self.write_indent()
              self.whitespace = False
              self.indention = False
              if text[start] == " ":
                  data = "\\"
                  self.column += len(data)
                  if self.encoding:
                      data = data.encode(self.encoding)
                  self.stream.write(data)
          end += 1
      self.write_indicator('"', False)
  
imports: from .error import YAMLError
  from .events import *
label_desc: Use image node_id 55 for calling the Emitter obj's underlying member method code with example usage: obj.write_double_quoted(text, split) without return types