code: def process_scalar(self):
      if self.analysis is None:
          self.analysis = self.analyze_scalar(self.event.value)
      if self.style is None:
          self.style = self.choose_scalar_style()
      split = not self.simple_key_context
      # if self.analysis.multiline and split    \
      #        and (not self.style or self.style in '\'\"'):
      #    self.write_indent()
      if self.style == '"':
          self.write_double_quoted(self.analysis.scalar, split)
      elif self.style == "'":
          self.write_single_quoted(self.analysis.scalar, split)
      elif self.style == ">":
          self.write_folded(self.analysis.scalar)
      elif self.style == "|":
          self.write_literal(self.analysis.scalar)
      else:
          self.write_plain(self.analysis.scalar, split)
      self.analysis = None
      self.style = None
  
imports: from .error import YAMLError
  from .events import *
label_desc: Use image node_id 39 for calling the Emitter obj's underlying member method code with example usage: obj.process_scalar() without return types