code: def safe_acos(t, eps=1e-8):
      """A safe version of arccos which avoids evaluating at -1 or 1."""
      return jnp.arccos(jnp.clip(t, -1.0 + eps, 1.0 - eps))
  
file_path: nerfies/nerfies/quaternion.py
imports: from jax import numpy
  from jax.numpy import linalg
label_desc: Use image node_id 1 for calling a global function with example usage: safe_acos(t, eps) and returns: jnp