code: def getGraphIcon(name):
      """Return a `PyQtGraph` icon from the registry by `name`"""
      icon = _ICON_REGISTRY[name]
      if isinstance(icon, GraphIcon):
          icon = icon.qicon
          _ICON_REGISTRY[name] = icon
  
      return icon
  
file_path: pyqtgraph/pyqtgraph/icons/__init__.py
imports: import os.path
  import warnings
  from ..Qt import QtGui, QtWidgets
label_desc: Use image node_id 1 for calling a global function with example usage: getGraphIcon(name) and returns: icon