code: def query_extractor(q: Union[str, None] = None):
      return q
  
imports: from typing import Union
  from fastapi import Cookie, Depends, FastAPI
  from typing_extensions import Annotated
label_desc: Use image node_id 1 for calling a global function with example usage: query_extractor(q) and returns: q