code: def build_dataloader_test(cfg):
      """Build dataloader for testing"""
      test_dataset = VideoClsDataset(
          anno_path=cfg.CONFIG.DATA.VAL_ANNO_PATH,
          data_path=cfg.CONFIG.DATA.VAL_DATA_PATH,
          mode="test",
          clip_len=cfg.CONFIG.DATA.CLIP_LEN,
          frame_sample_rate=cfg.CONFIG.DATA.FRAME_RATE,
          test_num_segment=cfg.CONFIG.DATA.TEST_NUM_SEGMENT,
          test_num_crop=cfg.CONFIG.DATA.TEST_NUM_CROP,
          keep_aspect_ratio=cfg.CONFIG.DATA.KEEP_ASPECT_RATIO,
          crop_size=cfg.CONFIG.DATA.CROP_SIZE,
          short_side_size=cfg.CONFIG.DATA.SHORT_SIDE_SIZE,
          new_height=cfg.CONFIG.DATA.NEW_HEIGHT,
          new_width=cfg.CONFIG.DATA.NEW_WIDTH,
      )
  
      if cfg.DDP_CONFIG.DISTRIBUTED:
          test_sampler = (
              torch.utils.data.distributed.DistributedSampler(
                  test_dataset
              )
          )
      else:
          test_sampler = None
      test_loader = torch.utils.data.DataLoader(
          test_dataset,
          batch_size=cfg.CONFIG.VAL.BATCH_SIZE,
          shuffle=(test_sampler is None),
          num_workers=9,
          sampler=test_sampler,
          pin_memory=True,
      )
  
      return test_loader
  
file_path: gluon-cv/gluoncv/torch/data/video_cls/dataset_classification.py
imports: import os
  import warnings
  import numpy
  import torch
  from torch.utils.data import Dataset
  from ..transforms.videotransforms import video_transforms, volume_transforms
  from .multigrid_helper import multiGridHelper, MultiGridBatchSampler
label_desc: Use image node_id 2 for calling a global function with example usage: build_dataloader_test(cfg) and returns: test_loader