code: def __str__(self):
      lines = []
      if self.context is not None:
          lines.append(self.context)
      if self.context_mark is not None and (
          self.problem is None
          or self.problem_mark is None
          or self.context_mark.name != self.problem_mark.name
          or self.context_mark.line != self.problem_mark.line
          or self.context_mark.column != self.problem_mark.column
      ):
          lines.append(str(self.context_mark))
      if self.problem is not None:
          lines.append(self.problem)
      if self.problem_mark is not None:
          lines.append(str(self.problem_mark))
      if self.note is not None:
          lines.append(self.note)
      return "\n".join(lines)
  
file_path: keepsake/python/keepsake/_vendor/yaml/error.py
label_desc: Use image node_id 2 for calling the MarkedYAMLError obj's underlying member method code with example usage: obj.__str__() and returns: str