code: def write_indicator(
      self,
      indicator,
      need_whitespace,
      whitespace=False,
      indention=False,
  ):
      if self.whitespace or not need_whitespace:
          data = indicator
      else:
          data = " " + indicator
      self.whitespace = whitespace
      self.indention = self.indention and indention
      self.column += len(data)
      self.open_ended = False
      if self.encoding:
          data = data.encode(self.encoding)
      self.stream.write(data)
  
imports: from .error import YAMLError
  from .events import *
label_desc: Use image node_id 49 for calling the Emitter obj's underlying member method code with example usage: obj.write_indicator(indicator, need_whitespace, whitespace, indention) without return types