code: def get_test_dataset(
      opts: argparse.Namespace, *args, **kwargs
  ) -> BaseDataset:
      """Helper function to build a dataset for testing.
  
      Args:
          opts: Command-line arguments
  
      Returns:
          An instance of BaseDataset
      """
  
      test_dataset = build_dataset_from_registry(
          opts, is_training=False, is_evaluation=True, *args, **kwargs
      )
  
      if is_master(opts):
          logger.log("Evaluation dataset details: ")
          print("{}".format(test_dataset))
  
      return test_dataset
  
file_path: ml-cvnets/data/datasets/__init__.py
imports: import argparse
  from typing import Optional, Tuple
  from data.datasets.classification.base_image_classification_dataset import BaseImageClassificationDataset
  from data.datasets.classification.base_imagenet_shift_dataset import BaseImageNetShiftDataset
  from data.datasets.dataset_base import BaseDataset, BaseImageDataset, BaseVideoDataset
  from data.datasets.detection.base_detection import BaseDetectionDataset
  from data.datasets.multi_modal_img_text import arguments_multi_modal_img_text
  from data.datasets.segmentation.base_segmentation import BaseImageSegmentationDataset
  from utils import logger
  from utils.ddp_utils import is_master
  from utils.registry import Registry
label_desc: Use image node_id 2 for calling a global function with example usage: get_test_dataset(opts) and returns: test_dataset