code: def _interpolate_scatter_add_(dst, x, src):
      """
      Like ``dst.scatter_add_(-1, x, src)`` but continuously index into the
      rightmost dim of an array, linearly interpolating between array values.
      """
      with torch.no_grad():
          x0 = x.floor().clamp(min=0, max=dst.size(-1) - 2)
          x1 = x0 + 1
      dst.scatter_add_(-1, x0.long(), src * (x1 - x))
      dst.scatter_add_(-1, x1.long(), src * (x - x0))
      return dst
  
imports: import functools
  import weakref
  from collections import namedtuple
  import torch
  from torch.distributions import constraints
  from pyro.distributions.util import broadcast_shape, is_validation_enabled
  from pyro.ops.special import safe_log
  from .torch_distribution import TorchDistribution
label_desc: Use image node_id 4 for calling a global function with example usage: _interpolate_scatter_add_(dst, x, src) and returns: dst