code: def check(input: TensorOrTensors) -> None:
      """Checks whether the input is a tensor or tensors.
  
      Raises:
          TypeError: input is not a tensor or tensors.
  
      """
      if isinstance(input, tuple):
          for x in input:
              check(x)
          return
  
      if not isinstance(input, Tensor):
          raise TypeError(
              f"expected Tensor, but got {input.__class__.__name__}"
          )
  
imports: import typing
  from typing import Callable, Iterable, Iterator, List, Tuple, Union, cast
  import torch
  from torch import Tensor
  import torch.cuda.comm
label_desc: Use image node_id 1 for calling a global function with example usage: check(input) without return types