code: def test_file_uploader_failing_when_no_etag():
      response["response"] = MagicMock(headers={})
      presigned_url = "https://test-url"
      file_uploader = uploader.FileUploader(
          presigned_url=presigned_url,
          source_file="test.txt",
          total_size=100,
          name="test.txt",
      )
      file_uploader.progress = MagicMock()
  
      with pytest.raises(
          ValueError,
          match=f"Unexpected response from {presigned_url}, response",
      ):
          file_uploader.upload()
  
file_path: pytorch-lightning/tests/tests_app/source_code/test_uploader.py
imports: from unittest import mock
  from unittest.mock import ANY, MagicMock
  import pytest
  from lightning.app.source_code import uploader
label_desc: Use image node_id 2 for calling a global function with example usage: test_file_uploader_failing_when_no_etag() without return types