code: def add_nnz_(
      src: SparseTensor,
      other: torch.Tensor,
      layout: Optional[str] = None,
  ) -> SparseTensor:
      value = src.storage.value()
      if value is not None:
          value = value.add_(other.to(value.dtype))
      else:
          value = other.add(1)
      return src.set_value_(value, layout=layout)
  
file_path: pytorch_sparse/torch_sparse/add.py
imports: from typing import Optional
  import torch
  from torch import Tensor
  from torch_scatter import gather_csr
  from torch_sparse.tensor import SparseTensor
label_desc: Use image node_id 6 for calling a global function with example usage: add_nnz_(src, other, layout) and returns: src