code: def query_entity_description(entity_id, session=None):
      """Query entity wikidata description from entityID
  
      Args:
          entity_id (str): A wikidata page ID.
          session (requests.Session): requests session to reuse connections
  
      Returns:
          str: Wikidata short description of the entityID
          descriptionNotFound' will be returned if no description is found
      """
      query = (
          """
      PREFIX wd: <http://www.wikidata.org/entity/>
      PREFIX schema: <http://schema.org/>
  
      SELECT ?o
      WHERE
      {
        wd:"""
          + entity_id
          + """ schema:description ?o.
        FILTER ( lang(?o) = "en" )
      }
      """
      )
  
      session = get_session(session=session)
  
      try:
          r = session.get(
              API_URL_WIKIDATA, params=dict(query=query, format="json")
          )
          description = r.json()["results"]["bindings"][0]["o"]["value"]
      except Exception as e:  # noqa: F841
          logger.warning("DESCRIPTION NOT FOUND")
          return "descriptionNotFound"
  
      return description
  
file_path: recommenders/recommenders/datasets/wikidata.py
imports: import pandas
  import requests
  import logging
  from retrying import retry
label_desc: Use image node_id 5 for calling a global function with example usage: query_entity_description(entity_id, session) and returns: description, str