def METHOD_NAME(x, i, v):
  """Applies an inplace update on input x at index i with value v. Aliases x.
  If i is None, x and v must be the same shape. Computes
    x = v;
  If i is a scalar, x has a rank 1 higher than v's. Computes
    x[i, :] = v;
  Otherwise, x and v must have the same rank. Computes
    x[i, :] = v;
  Args:
    x: A Tensor.
    i: None, a scalar or a vector.
    v: A Tensor.
  Returns:
    Returns x.
  """
  return _inplace_helper(x, i, v, gen_array_ops.inplace_update)