code: def scatter(self, dim, index, src):
      """Out-of-place version of :meth:`CrypTensor.scatter_`"""
      result = self.clone()
      if is_tensor(src):
          src = self.new(src)
      assert isinstance(
          src, type(self)
      ), "Unrecognized scatter src type: %s" % type(src)
      result._tensor.scatter_(dim, index, src._tensor)
      return result
  
imports: import torch
  from ..common.tensor_types import is_tensor
  from ..common.util import torch_cat, torch_stack
label_desc: Use image node_id 5 for calling a global function with example usage: scatter(dim, index, src) and returns: result