code: def scatter(input, dim, index, src):
      return ivy.put_along_axis(input, index, src, dim, mode="replace")
  
file_path: ivy/ivy/functional/frontends/torch/tensor_functions.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 6 for calling a global function with example usage: scatter(input, dim, index, src) and returns: ivy