code: def get_image_list(class_map, annotations, classes=MLPERF_CLASSES):
      labels = class_map[np.isin(class_map["DisplayName"], classes)][
          "LabelName"
      ]
      image_ids = annotations[
          np.isin(annotations["LabelName"], labels)
      ]["ImageID"].unique()
      return image_ids
  
file_path: tinygrad/extra/datasets/openimages.py
imports: import os
  import math
  import json
  import numpy
  from PIL import Image
  import pathlib
  import boto3, botocore
  from tinygrad.helpers import fetch
  from tqdm import tqdm
  import pandas
  import concurrent.futures
label_desc: Use image node_id 4 for calling a global function with example usage: get_image_list(class_map, annotations, classes) and returns: image_ids