code: def test_single_item_batch():
      multi_view_collate = MultiViewCollate()
      img = [torch.randn((3, 224, 224)) for _ in range(5)]
      label = 1
      fname = "image1.jpg"
      batch = [(img, label, fname)]
      views, labels, fnames = multi_view_collate(batch)
      assert len(views) == 5
      assert views[0].shape == (1, 3, 224, 224)
      assert torch.equal(labels, torch.tensor([1]))
      assert fnames == ["image1.jpg"]
  
file_path: lightly/tests/data/test_multi_view_collate.py
imports: from typing import List, Tuple, Union
  from warnings import warn
  import torch
  from torch import Tensor
  from lightly.data.multi_view_collate import MultiViewCollate
label_desc: Use image node_id 2 for calling a global function with example usage: test_single_item_batch() without return types