code: def _density_max(k, m):
      return 2 - (k - 1.0) / (m - 1.0) if k >= m else 1.0
  
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 5 for calling a global function with example usage: _density_max(k, m) and returns: unknown