code: def compare_datasets(test_fixture, dataset1, dataset2):
      test_fixture.assertEqual(len(dataset1), len(dataset2))
      for idx in range(len(dataset1)):
          compare_batches(test_fixture, dataset1[idx], dataset2[idx])
  
imports: import os
  import unittest
  from functools import wraps
  import torch
  from classy_vision.hooks import ClassyHook
  from classy_vision.tasks import ClassyTask
  from classy_vision.trainer import ClassyTrainer
label_desc: Use image node_id 5 for calling a global function with example usage: compare_datasets(test_fixture, dataset1, dataset2) without return types