code: def _find_insertion_index_by_kind(ps, kind):
      i = -1
      for i, p in enumerate(ps):
          if param_kind_to_int[p.kind] > param_kind_to_int[kind]:
              break
      else:
          i = i + 1
      return i
  
file_path: nnabla/python/src/nnabla/utils/signature_utils.py
imports: import inspect
label_desc: Use image node_id 4 for calling a global function with example usage: _find_insertion_index_by_kind(ps, kind) and returns: i