code: def test_SpinBox_formatting(value, expected_text, opts):
      sb = pg.SpinBox(**opts)
      sb.setValue(value)
  
      assert sb.value() == value
      assert sb.text() == expected_text
  
imports: import pytest
  import pyqtgraph
label_desc: Use image node_id 2 for calling a global function with example usage: test_SpinBox_formatting(value, expected_text, opts) without return types