code: def get_server(
      paths: Sequence[Path],
      host: str,
      port: int,
  ):
      """Returns an HTTP server that serves a local datasource.
  
      Args:
          paths:
              List of paths to serve.
          host:
              Host to serve the datasource on.
          port:
              Port to serve the datasource on.
  
      Examples:
          >>> from lightly.api import serve
          >>> from pathlib import Path
          >>> serve(
          >>>    paths=[Path("/input_mount), Path("/lightly_mount)],
          >>>    host="localhost",
          >>>    port=3456,
          >>> )
  
      """
  
      class _LocalDatasourceRequestHandler(SimpleHTTPRequestHandler):
          def translate_path(self, path: str) -> str:
              return _translate_path(path=path, directories=paths)
  
          def do_OPTIONS(self) -> None:
              self.send_response(204)
              self.send_header("Access-Control-Allow-Origin", "*")
              self.send_header(
                  "Access-Control-Allow-Methods", "GET, POST, OPTIONS"
              )
              self.end_headers()
  
      return HTTPServer((host, port), _LocalDatasourceRequestHandler)
  
imports: from http.server import HTTPServer, SimpleHTTPRequestHandler
  from pathlib import Path
  from typing import Sequence
label_desc: Use image node_id 1 for calling a global function with example usage: get_server(paths, host, port) and returns: HTTPServer, _translate_path