code: def is_torch_sparse_tensor(src: Any) -> bool:
      r"""Returns :obj:`True` if the input :obj:`src` is a
      :class:`torch.sparse.Tensor` (in any sparse layout).
  
      Args:
          src (Any): The input object to be checked.
      """
      if isinstance(src, Tensor):
          if src.layout == torch.sparse_coo:
              return True
          if src.layout == torch.sparse_csr:
              return True
          if (
              torch_geometric.typing.WITH_PT112
              and src.layout == torch.sparse_csc
          ):
              return True
      return False
  
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 2 for calling a global function with example usage: is_torch_sparse_tensor(src) and returns: False, True, True, True