code: def http_server():
      with serve() as s:
          yield s
  
file_path: ray/python/ray/data/tests/mock_http_server.py
imports: import contextlib
  import threading
  from http.server import BaseHTTPRequestHandler, HTTPServer
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: http_server() without return types