code: def get_image_paths(cfg: AttrDict, split: str) -> List[str]:
      """
      Get the list of image path for the provided dataset and split
      """
      dataset = build_dataset(cfg=cfg, split=split)
      feature_image_paths = dataset.get_image_paths()
      # due to multi-modality, we get image_paths as a nested list, one for each
      # dataset. Check it's a list and extract images.
      assert (
          type(feature_image_paths) == list
      ), "Image paths must be a list"
      assert (
          len(feature_image_paths) == 1
      ), "Multi-modality not supported yet!"
      return feature_image_paths[0]
  
imports: import logging
  import os
  import sys
  from argparse import Namespace
  from typing import Any, List, Optional
  import numpy
  import torch
  from iopath.common.file_io import g_pathmgr
  from vissl.config import AttrDict
  from vissl.data import build_dataset
  from vissl.hooks import default_hook_generator
  from vissl.utils.checkpoint import get_checkpoint_folder
  from vissl.utils.distributed_launcher import launch_distributed
  from vissl.utils.env import set_env_vars, setup_path_manager
  from vissl.utils.extract_features_utils import ExtractedFeaturesLoader
  from vissl.utils.hydra_config import compose_hydra_configuration, convert_to_attrdict
  from vissl.utils.io import save_file
  from vissl.utils.logger import setup_logging, shutdown_logging
  from vissl.utils.misc import is_faiss_available, set_seeds
  from vissl.utils.pca import PCA
label_desc: Use image node_id 2 for calling a global function with example usage: get_image_paths(cfg, split) and returns: feature_image_paths