code: def mul_nnz(
      src: SparseTensor,
      other: torch.Tensor,
      layout: Optional[str] = None,
  ) -> SparseTensor:
      value = src.storage.value()
      if value is not None:
          value = value.mul(other.to(value.dtype))
      else:
          value = other
      return src.set_value(value, layout=layout)
  
file_path: pytorch_sparse/torch_sparse/mul.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 5 for calling a global function with example usage: mul_nnz(src, other, layout) and returns: src