code: def _is_on_simplex(v, s):
      if v.sum() < s + 1e-10 and np.alltrue(v > 0):
          return True
      return False
  
file_path: cornac/cornac/models/ctr/ctr.py
imports: import numpy
  from ...utils import get_rng
label_desc: Use image node_id 3 for calling a global function with example usage: _is_on_simplex(v, s) and returns: False, True