code: def lineCountDistanceFromPrimary(
      self, current, primary, totalNrOfLines
  ):
      distance = primary - current
      if distance < 0:
          distance += totalNrOfLines
      return distance
  
imports: from math import ceil
  from PyQt5.QtCore import *
  from PyQt5.QtGui import *
  from PyQt5.QtWidgets import *
label_desc: Use image node_id 7 for calling the Spinner obj's underlying member method code with example usage: obj.lineCountDistanceFromPrimary(current, primary, totalNrOfLines) and returns: distance