code: def _nearest_indices_and_weights(
      coordinate: Array,
  ) -> list[tuple[Array, ArrayLike]]:
      index = _round_half_away_from_zero(coordinate).astype(jnp.int32)
      weight = coordinate.dtype.type(1)
      return [(index, weight)]
  
imports: from collections.abc import Sequence
  import functools
  import itertools
  import operator
  import textwrap
  from typing import Callable
  import scipy.ndimage
  from jax._src import api
  from jax._src import util
  from jax import lax
  import jax.numpy
  from jax._src.numpy.util import _wraps
  from jax._src.typing import ArrayLike, Array
  from jax._src.util import safe_zip
label_desc: Use image node_id 6 for calling a global function with example usage: _nearest_indices_and_weights(coordinate) and returns: list