code: def fetch_all_urls_for_concept(imagenet_dataframe, concept):
      if imagenet_dataframe["class_name"].str.contains(concept).any():
          all_images = imagenet_dataframe[
              imagenet_dataframe["class_name"] == concept
          ]["url"].values[0]
          bytes = urllib.request.urlopen(all_images)
          all_urls = []
          for line in bytes:
              all_urls.append(line.decode("utf-8")[:-2])
          return all_urls
      else:
          raise tf.errors.NotFoundError(
              None,
              None,
              "Couldn't find any imagenet concept for "
              + concept
              + ". Make sure you're getting a valid concept",
          )
  
file_path: tcav/tcav/tcav_examples/image_models/imagenet/imagenet_and_broden_fetcher.py
imports: import pandas
  import urllib.request
  import os
  import shutil
  import PIL
  from PIL import Image
  import tensorflow
  import socket
  import random
label_desc: Use image node_id 3 for calling a global function with example usage: fetch_all_urls_for_concept(imagenet_dataframe, concept) and returns: all_urls