code: def test_AxisItem_tickFont(monkeypatch):
      def collides(textSpecs):
          fontMetrics = pg.Qt.QtGui.QFontMetrics(font)
          for rect, _, text in textSpecs:
              br = fontMetrics.tightBoundingRect(text)
              if (
                  rect.height() < br.height()
                  or rect.width() < br.width()
              ):
                  return True
          return False
  
      def test_collision(p, axisSpec, tickSpecs, textSpecs):
          assert not collides(textSpecs)
  
      plot = pg.PlotWidget()
      bottom = plot.getAxis("bottom")
      left = plot.getAxis("left")
      font = bottom.linkedView().font()
      font.setPointSize(25)
      bottom.setStyle(tickFont=font)
      left.setStyle(tickFont=font)
      monkeypatch.setattr(bottom, "drawPicture", test_collision)
      monkeypatch.setattr(left, "drawPicture", test_collision)
  
      plot.show()
      app.processEvents()
      plot.close()
  
file_path: pyqtgraph/tests/graphicsItems/test_AxisItem.py
imports: from math import isclose
  import pytest
  import pyqtgraph
label_desc: Use image node_id 5 for calling a global function with example usage: test_AxisItem_tickFont(monkeypatch) and returns: False, True