code: def sample_songs():
      endpoint_url = "https://query.wikidata.org/sparql"
  
      query = """
      SELECT DISTINCT ?song ?songLabel ?artist ?artistLabel (SAMPLE(?popularity) AS ?popularity_count)
      WHERE {{
        ?song wdt:P31 wd:Q7366; # Instance of song
              wdt:P175 ?artist; # Performer
              wikibase:sitelinks ?popularity.
        SERVICE wikibase:label {{ bd:serviceParam wikibase:language "en". }}
      }}
      GROUP BY ?song ?songLabel ?artist ?artistLabel
      HAVING (SAMPLE(?popularity) >= 5)
      """
  
      headers = {"Accept": "application/json"}
      response = requests.get(
          endpoint_url, params={"query": query}, headers=headers
      )
  
      if response.status_code != 200:
          raise Exception(
              f"Error: {response.status_code} - {response.reason}"
          )
  
      results = response.json().get("results", {}).get("bindings", [])
      songs_info = [
          {
              "song_name": result["songLabel"]["value"],
              "artist_name": result["artistLabel"]["value"],
              "popularity": int(result["popularity_count"]["value"]),
          }
          for result in results
      ]
  
      return songs_info
  
imports: import requests
  import os
  import pickle
  import random
  from tqdm import tqdm
  from nltk.corpus import words
label_desc: Use image node_id 1 for calling a global function with example usage: sample_songs() and returns: songs_info