code: def test_filename_from_headers(
      content_disposition: Optional[str],
      filename: Optional[str],
  ):
      if content_disposition:
          headers = {
              "content-disposition": content_disposition,
          }
      else:
          headers = None
      resp = _FakeResponse(
          "http://foo.bar/baz.zip", b"content", headers=headers
      )
      assert downloader._get_filename(resp), filename
  
imports: import hashlib
  import io
  import os
  import tempfile
  from typing import Optional
  from unittest import mock
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core.download import downloader
  from tensorflow_datasets.core.download import resource
  from tensorflow_datasets.core.download import util
label_desc: Use image node_id 2 for calling a global function with example usage: test_filename_from_headers(content_disposition, filename) without return types