code: def is_sparse(src: Any) -> bool:
      r"""Returns :obj:`True` if the input :obj:`src` is of type
      :class:`torch.sparse.Tensor` (in any sparse layout) or of type
      :class:`torch_sparse.SparseTensor`.
  
      Args:
          src (Any): The input object to be checked.
      """
      return is_torch_sparse_tensor(src) or isinstance(
          src, SparseTensor
      )
  
imports: import typing
  import warnings
  from typing import Any, List, Optional, Tuple, Union
  import torch
  from torch import Tensor
  import torch_geometric.typing
  from torch_geometric.typing import SparseTensor
  from torch_geometric.utils import coalesce, cumsum
label_desc: Use image node_id 3 for calling a global function with example usage: is_sparse(src) and returns: unknown