code: def KORNIA_CHECK_IS_LIST_OF_TENSOR(
      x: Optional[Sequence[object]], raises: bool = True
  ) -> TypeGuard[list[Tensor]]:
      """Check the input variable is a List of Tensors.
  
      Args:
          x: Any sequence of objects
          raises: bool indicating whether an exception should be raised upon failure.
  
      Raises:
          TypeException: if the input variable does not match with the expected and raises is True.
  
      Return:
          True if the input is a list of Tensors, otherwise return False.
  
      Example:
          >>> x = torch.rand(2, 3, 3)
          >>> KORNIA_CHECK_IS_LIST_OF_TENSOR(x, raises=False)
          False
          >>> KORNIA_CHECK_IS_LIST_OF_TENSOR([x])
          True
      """
      are_tensors = isinstance(x, list) and all(
          isinstance(d, Tensor) for d in x
      )
      if not are_tensors:
          if raises:
              raise TypeError(
                  f"Provided container of type {type(x)} is not a list of tensors"
              )
          return False
      return True
  
imports: from __future__ import annotations
  from typing import Any, Optional, Sequence, TypeVar, cast
  from torch import float16, float32, float64
  from typing_extensions import TypeGuard
  from kornia.core import Tensor
label_desc: Use image node_id 6 for calling a global function with example usage: KORNIA_CHECK_IS_LIST_OF_TENSOR(x, raises) and returns: True, False