code: def set_server_settings(server_settings: ServerSettings):
      global _server_settings
      _server_settings = server_settings
  
imports: from __future__ import annotations
  import os
  import json
  from threading import Lock
  from functools import partial
  from typing import Iterator, List, Optional, Union, Dict
  import llama_cpp
  import anyio
  from anyio.streams.memory import MemoryObjectSendStream
  from starlette.concurrency import run_in_threadpool, iterate_in_threadpool
  from fastapi import Depends, FastAPI, APIRouter, Request, HTTPException, status
  from fastapi.middleware import Middleware
  from fastapi.middleware.cors import CORSMiddleware
  from fastapi.security import HTTPBearer
  from sse_starlette.sse import EventSourceResponse
  from starlette_context.plugins import RequestIdPlugin
  from starlette_context.middleware import RawContextMiddleware
  from llama_cpp.server.model import LlamaProxy
  from llama_cpp.server.settings import ConfigFileSettings, Settings, ModelSettings, ServerSettings
  from llama_cpp.server.types import CreateCompletionRequest, CreateEmbeddingRequest, CreateChatCompletionRequest, ModelList
  from llama_cpp.server.errors import RouteErrorHandler
label_desc: Use image node_id 1 for calling a global function with example usage: set_server_settings(server_settings) without return types