code: def test_AxisItem_leftRelink():
      axis = pg.AxisItem("left")
      fake_view = FakeView()
      axis.linkToView(fake_view)
      assert axis.linkedView() == fake_view
      assert fake_view.sigYRangeChanged.calls == ["connect"]
      assert fake_view.sigXRangeChanged.calls == []
      assert fake_view.sigResized.calls == ["connect"]
      axis.unlinkFromView()
      assert fake_view.sigYRangeChanged.calls == [
          "connect",
          "disconnect",
      ]
      assert fake_view.sigXRangeChanged.calls == []
      assert fake_view.sigResized.calls == ["connect", "disconnect"]
  
file_path: pyqtgraph/tests/graphicsItems/test_AxisItem.py
imports: from math import isclose
  import pytest
  import pyqtgraph
label_desc: Use image node_id 4 for calling a global function with example usage: test_AxisItem_leftRelink() without return types