code: def read_linked_entities(data):
      """Obtain lists of liken entities (IDs and names) from dictionary
  
      Args:
          data (json): dictionary with linked pages
  
      Returns:
          list, list:
          - List of liked entityIDs.
          - List of liked entity names.
      """
  
      return [
          (
              c.get("valUrl")
              .get("value")
              .replace("http://www.wikidata.org/entity/", ""),
              c.get("valLabel").get("value"),
          )
          for c in data.get("results", {}).get("bindings", [])
      ]
  
file_path: recommenders/recommenders/datasets/wikidata.py
imports: import pandas
  import requests
  import logging
  from retrying import retry
label_desc: Use image node_id 4 for calling a global function with example usage: read_linked_entities(data) and returns: unknown