code: def _nearest_indices_and_weights(coordinate):
      coordinate = (
          coordinate
          if coordinate.dtype.is_integer
          else tf.round(coordinate)
      )
      index = tf.cast(coordinate, tf.int32)
      weight = tf.constant(1, coordinate.dtype)
      return [(index, weight)]
  
file_path: keras/keras/backend/tensorflow/image.py
imports: import functools
  import itertools
  import operator
  import tensorflow
  from keras.backend.tensorflow.core import convert_to_tensor
label_desc: Use image node_id 5 for calling a global function with example usage: _nearest_indices_and_weights(coordinate) and returns: list