code: def _parse_and_verify_image_ids(
      image_ids, dataset_dir, split, download=True
  ):
      image_ids = _parse_image_ids(image_ids)
  
      split_image_ids = []
      unspecified_split_ids = []
  
      # Ignore images from other splits
      for image_id in image_ids:
          if "/" in image_id:
              _split, image_id = image_id.split("/")
              if _split not in _SUPPORTED_SPLITS:
                  raise ValueError(
                      "Invalid split '%s'. Supported splits are %s"
                      % (_split, _SUPPORTED_SPLITS)
                  )
  
              if _split != split:
                  continue
  
              split_image_ids.append(image_id)
          else:
              unspecified_split_ids.append(image_id)
  
      return _verify_image_ids(
          split_image_ids,
          unspecified_split_ids,
          dataset_dir,
          split,
          download=download,
      )
  
imports: from collections import defaultdict
  import csv
  from glob import glob
  import logging
  import os
  import random
  import warnings
  import pandas
  import eta.core.image
  import eta.core.serial
  import eta.core.utils
  import eta.core.web
  import fiftyone
  import fiftyone.core.fields
  import fiftyone.core.labels
  import fiftyone.utils.aws
  import fiftyone.utils.data
  import fiftyone.utils.image
label_desc: Use image node_id 16 for calling a global function with example usage: _parse_and_verify_image_ids(image_ids, dataset_dir, split, download) and returns: _verify_image_ids