code: def _absolute_dims(ndim, dims):
      return tuple(ndim + dim if dim < 0 else dim for dim in dims)
  
imports: import jax.numpy
  from jax import lax
  from flax.core import Scope
  from flax.linen import initializers
label_desc: Use image node_id 1 for calling a global function with example usage: _absolute_dims(ndim, dims) and returns: tuple