code: def recur_ap(f, ls):
      """
      Apply `f` to every elem in `ls` (a nested list) recursively. Usages::
  
          recur_ap(lambda x: x+2, 1) = 3
          recur_ap(lambda x: x+2, [2, [3, 4]]) = [4, [5, 6]]
  
      :param ~types.FunctionType f: the function to be applied to ls
      :param ls: the value or the nested list to be processed
      :return: process result
      """
      if isinstance(ls, list):
          return [recur_ap(f, elem) for elem in ls]
      else:
          return f(ls)
  
label_desc: Use image node_id 2 for calling a global function with example usage: recur_ap(f, ls) and returns: unknown, f