docs: def write(self, title, data, output=None):
          '''
          Add a data to the current opened section.
          :return:
          '''
          if not isinstance(data, (dict, list, tuple)):
              data = {'raw-content': str(data)}
          output = output or self.__default_outputter
  
          if output != 'null':
              try:
                  if isinstance(data, dict) and 'return' in data:
                      data = data['return']
                  content = self._printout(data, output)
              except Exception:  # Fall-back to just raw YAML
                  content = None
          else:
              content = None
  
          if content is None:
              data = json.loads(json.dumps(data))
              if isinstance(data, dict) and data.get('return'):
                  data = data.get('return')
              content = yaml.safe_dump(data, default_flow_style=False, indent=4)
  
          self.__current_section.append({title: content})