code: def fori_loop(lower, upper, body_fun, init_val):
      if not callable(body_fun):
          raise ivy.exceptions.IvyException(
              "jax.lax.fori_loop: Argument body_fun should be callable."
          )
      val = init_val
      for i in range(lower, upper):
          val = body_fun(i, val)
      return val
  
file_path: ivy/ivy/functional/frontends/jax/lax/control_flow_operators.py
imports: import ivy
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 2 for calling a global function with example usage: fori_loop(lower, upper, body_fun, init_val) and returns: val