code: def test_ColorMap_getStops(color_list):
      cm = pg.ColorMap(pos, color_list, name="test")
      # default is byte format:
      stops, colors = cm.getStops()
      assert (stops == pos).all()
      assert (colors == int_tuples).all()
  
      # manual byte format:
      stops, colors = cm.getStops(pg.ColorMap.BYTE)
      assert (stops == pos).all()
      assert (colors == int_tuples).all()
  
      stops, colors = cm.getStops("bYTe")
      assert (stops == pos).all()
      assert (colors == int_tuples).all()
  
      # manual float format:
      stops, colors = cm.getStops(pg.ColorMap.FLOAT)
      assert (stops == pos).all()
      assert (colors == float_tuples).all()
  
      stops, colors = cm.getStops("floaT")
      assert (stops == pos).all()
      assert (colors == float_tuples).all()
  
      # manual QColor format:
      stops, colors = cm.getStops(pg.ColorMap.QCOLOR)
      assert (stops == pos).all()
      for actual, good in zip(colors, qcols):
          assert actual.getRgbF() == good.getRgbF()
  
      stops, colors = cm.getStops("qColor")
      assert (stops == pos).all()
      for actual, good in zip(colors, qcols):
          assert actual.getRgbF() == good.getRgbF()
  
file_path: pyqtgraph/tests/test_colormap.py
imports: import pytest
  import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtGui
label_desc: Use image node_id 1 for calling a global function with example usage: test_ColorMap_getStops(color_list) without return types