code: def _filename_from_uri(url: str) -> str:
      # get last part of the URI, i.e. file-name
      filename = url.split("/")[-1]
      # remove query params if exist
      filename = filename.split("?")[0]
      return filename
  
file_path: foolbox/foolbox/zoo/weights_fetcher.py
imports: import requests
  import shutil
  import zipfile
  import tarfile
  import os
  import logging
  from .common import sha256_hash, home_directory_path
label_desc: Use image node_id 2 for calling a global function with example usage: _filename_from_uri(url) and returns: filename