code: def get_superheroes_links(data):
      herolinks = []
  
      home_url = "https://www.superherodb.com"
  
      for all_li in data.find_all(class_="list"):
          for link in all_li.find_all("li"):
              for hero in link.find_all("a"):
                  herolinks.append(home_url + hero["href"])
      return herolinks
  
imports: from bs4 import BeautifulSoup
  import urllib3
  import pandas
  from collections import defaultdict
  import requests
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: get_superheroes_links(data) and returns: herolinks