code: def _multi_dot(arrays, order, i, j, precision):
      """Actually do the multiplication with the given order."""
      if i == j:
          return arrays[i]
      else:
          return jnp.dot(
              _multi_dot(arrays, order, i, order[i, j], precision),
              _multi_dot(arrays, order, order[i, j] + 1, j, precision),
              precision=precision,
          )
  
file_path: jax/jax/_src/third_party/numpy/linalg.py
imports: import numpy
  import jax.numpy
  import jax.numpy.linalg
  from jax._src.numpy.util import check_arraylike, _wraps
label_desc: Use image node_id 12 for calling a global function with example usage: _multi_dot(arrays, order, i, j, precision) and returns: arrays, jnp