code: def test_get_filename_from_url(self):
      url_fnames = [
          ["http://www.foo.bar/bat.zip", "bat.zip"],
          ["www.foo.bar/bat.tar.gz", "bat.tar.gz"],
          ["foo.bar/bat.zip?q=test", "bat.zip"],
          ["http%3A%2F%2Fwww.foo.bar%2Fbat.tar.gz", "bat.tar.gz"],
      ]
      for url, fname in url_fnames:
          assert io.get_filename_from_url(url) == fname
  
imports: import os
  import tarfile
  import zipfile
  import numpy
  import pytest
  from scipy import sparse
  from textacy import io, utils
label_desc: Use image node_id 5 for calling the TestIOUtils obj's underlying member method code with example usage: obj.test_get_filename_from_url() without return types