code: def _linear_indices_and_weights(coordinate):
      lower = tf.floor(coordinate)
      upper_weight = coordinate - lower
      lower_weight = 1 - upper_weight
      index = tf.cast(lower, tf.int32)
      return [(index, lower_weight), (index + 1, upper_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 6 for calling a global function with example usage: _linear_indices_and_weights(coordinate) and returns: list