code: def test_torch_to_tensor_raises_runtime_error():
      with pytest.raises(RuntimeError) as exc_info:
          aug = ToTensor()  # noqa F841
      message = (
          "`ToTensor` is obsolete and it was removed from Albumentations. Please use `ToTensorV2` instead - "
          "https://albumentations.ai/docs/api_reference/pytorch/transforms/"
          "#albumentations.pytorch.transforms.ToTensorV2. "
          "\n\nIf you need `ToTensor` downgrade Albumentations to version 0.5.2."
      )
      assert str(exc_info.value) == message
  
file_path: albumentations/tests/test_pytorch.py
imports: import pytest
  import numpy
  import torch
  from PIL import Image
  from torchvision.transforms import ColorJitter
  import albumentations
  from albumentations.pytorch.transforms import ToTensor, ToTensorV2
label_desc: Use image node_id 6 for calling a global function with example usage: test_torch_to_tensor_raises_runtime_error() without return types