code: def test_upload_file_invalid():
      with pytest.raises(ValueError):
          UploadFile.validate("not a Starlette UploadFile")
  
file_path: fastapi/tests/test_datastructures.py
imports: import io
  from pathlib import Path
  from typing import List
  import pytest
  from fastapi import FastAPI, UploadFile
  from fastapi.datastructures import Default
  from fastapi.testclient import TestClient
label_desc: Use image node_id 1 for calling a global function with example usage: test_upload_file_invalid() without return types