code: def _simplicity(q, Q, j, lmin, lmax, lstep):
      eps = 1e-10
      n = len(Q)
      i = Q.index(q) + 1
      if (
          ((lmin % lstep) < eps or (lstep - lmin % lstep) < eps)
          and lmin <= 0
          and lmax >= 0
      ):
          v = 1
      else:
          v = 0
      return (n - i) / (n - 1.0) + v - j
  
imports: import math
  import numpy
  from .visual import CompoundVisual, updating_property
  from .line import LineVisual
  from .text import TextVisual
label_desc: Use image node_id 6 for calling a global function with example usage: _simplicity(q, Q, j, lmin, lmax, lstep) and returns: unknown