code: def __str__(self):
      if self.fileName is None:
          msg = "Error parsing string at line %d:\n" % self.lineNum
      else:
          msg = "Error parsing config file '%s' at line %d:\n" % (
              self.fileName,
              self.lineNum,
          )
      msg += "%s\n%s" % (self.line, Exception.__str__(self))
      return msg
  
file_path: pyqtgraph/pyqtgraph/configfile.py
imports: import datetime
  import os
  import re
  import sys
  from collections import OrderedDict
  import numpy
  from .None import units
  from .colormap import ColorMap
  from .Point import Point
  from .Qt import QtCore
label_desc: Use image node_id 2 for calling the ParseError obj's underlying member method code with example usage: obj.__str__() and returns: msg