code: def test_pil_to_long_tensor(img):
      transformer = PILToLongTensor(
          classes=[np.array([100, 100, 100]), np.array([101, 102, 104])]
      )
      # test with numpy:
      long_img = transformer(img)
      assert isinstance(long_img, torch.Tensor)
      # test with PIL
      img = Image.fromarray(img)
      long_img_2 = transformer(img)
      assert isinstance(long_img, torch.Tensor)
      assert (long_img == long_img_2).all()
  
file_path: baal/tests/utils/test_transforms.py
imports: import pytest
  import numpy
  import torch
  from PIL import Image
  from hypothesis.extra import numpy
  from hypothesis import given
  from baal.utils.transforms import PILToLongTensor
label_desc: Use image node_id 1 for calling a global function with example usage: test_pil_to_long_tensor(img) without return types