code: def test_get_collate_for_dataset():
      datasets_with_different_collate = ConcatDataset(
          [DummyDataset1(), DummyDataset2()]
      )
      datasets_with_same_collate = ConcatDataset(
          [DummyDataset1(), DummyDataset1()]
      )
  
      with pytest.raises(ValueError):
          get_collate_for_dataset(
              datasets_with_different_collate,
              ensure_collate_fn_are_the_same=True,
          )
  
      get_collate_for_dataset(
          datasets_with_same_collate,
          ensure_collate_fn_are_the_same=True,
      )
  
imports: import numpy
  import pytest
  import torch
  from pytorch_toolbelt.inference.functional import unpad_xyxy_bboxes, pad_image_tensor, unpad_image_tensor, pad_tensor_to_size
  from pytorch_toolbelt.modules.encoders import make_n_channel_input
  from pytorch_toolbelt.utils import match_bboxes, match_bboxes_hungarian, get_collate_for_dataset
  from torch import nn
  from torch.utils.data import ConcatDataset
  from functools import partial
label_desc: Use image node_id 11 for calling a global function with example usage: test_get_collate_for_dataset() without return types