code: def get_chart_csv_data(
      chart_url: str, auth_cookies: Optional[dict[str, str]] = None
  ) -> Optional[bytes]:
      content = None
      if auth_cookies:
          opener = urllib.request.build_opener()
          cookie_str = ";".join(
              [f"{key}={val}" for key, val in auth_cookies.items()]
          )
          opener.addheaders.append(("Cookie", cookie_str))
          response = opener.open(chart_url)
          content = response.read()
          if response.getcode() != 200:
              raise URLError(response.getcode())
      if content:
          return content
      return None
  
file_path: superset/superset/utils/csv.py
imports: import logging
  import re
  import urllib.request
  from typing import Any, Optional, Union
  from urllib.error import URLError
  import numpy
  import pandas
  import simplejson
  from superset.utils.core import GenericDataType
label_desc: Use image node_id 3 for calling a global function with example usage: get_chart_csv_data(chart_url, auth_cookies) and returns: None, content