class_docstr: Widget displaying an editable color gradient. The user may add, move, recolor,
  or remove colors from the gradient. Additionally, a context menu allows the 
  user to select from pre-defined gradients.
code: def __getattr__(self, attr):
      ### wrap methods from GradientEditorItem
      return getattr(self.item, attr)
  
file_path: pyqtgraph/pyqtgraph/widgets/GradientWidget.py
imports: from ..graphicsItems.GradientEditorItem import GradientEditorItem
  from ..Qt import QtCore, QtGui, QtWidgets
  from .GraphicsView import GraphicsView
label_desc: Use image node_id 4 for calling the GradientWidget obj's underlying member method code with example usage: obj.__getattr__(attr) and returns: getattr