code: def get_data(url):
      """
      Return BeautifulSoup html object.
      """
      r = requests.get(url)
      data = BeautifulSoup(r.text, "lxml")
      return data
  
imports: from bs4 import BeautifulSoup
  import urllib3
  import pandas
  from collections import defaultdict
  import requests
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: get_data(url) and returns: data