code: def write_literal(self, text):
      hints = self.determine_block_hints(text)
      self.write_indicator("|" + hints, True)
      if hints[-1:] == "+":
          self.open_ended = True
      self.write_line_break()
      breaks = True
      start = end = 0
      while end <= len(text):
          ch = None
          if end < len(text):
              ch = text[end]
          if breaks:
              if ch is None or ch not in "\n\x85\u2028\u2029":
                  for br in text[start:end]:
                      if br == "\n":
                          self.write_line_break()
                      else:
                          self.write_line_break(br)
                  if ch is not None:
                      self.write_indent()
                  start = end
          else:
              if ch is None or ch in "\n\x85\u2028\u2029":
                  data = text[start:end]
                  if self.encoding:
                      data = data.encode(self.encoding)
                  self.stream.write(data)
                  if ch is None:
                      self.write_line_break()
                  start = end
          if ch is not None:
              breaks = ch in "\n\x85\u2028\u2029"
          end += 1
  
imports: from .error import YAMLError
  from .events import *
label_desc: Use image node_id 58 for calling the Emitter obj's underlying member method code with example usage: obj.write_literal(text) without return types