code: def _get_data_by_filename(fname: str) -> Path:
      """
      Download file or used cached version.
  
      Args:
          fname (str): name of file to download
  
      Returns:
          Path: path at which file lives
      """
      full_fname = DATA_PATH.joinpath(fname)
  
      # check if file exists - download if necessary
      if not full_fname.exists():
          url = BASE_URL + fname
          download = requests.get(url, allow_redirects=True)
          with open(full_fname, "wb") as file:
              file.write(download.content)
  
      return full_fname
  
imports: from pathlib import Path
  import numpy
  import pandas
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: _get_data_by_filename(fname) and returns: full_fname