code: def set_headers(res):
      """
      set expected headers for request (CORS)
  
      Args:
          res (:obj:`falcon.Response`): the request
      """
      res.set_header("Access-Control-Allow-Origin", "*")
      res.set_header("Access-Control-Allow-Credentials", "true")
      res.set_header(
          "Access-Control-Allow-Methods", "GET,HEAD,OPTIONS,POST,PUT"
      )
      res.set_header(
          "Access-Control-Allow-Headers",
          "Access-Control-Allow-Headers, Access-Control-Allow-Origin,"
          " Origin,Accept, X-Requested-With, Content-Type, "
          "Access-Control-Request-Method, "
          "Access-Control-Request-Headers, Response-Format, clean, "
          "display-post-preprocces, display-tokens, "
          "display-token-text",
      )
  
file_path: nlp-architect/server/service.py
imports: import json
  import logging
  import os.path
  from importlib import import_module
  from nlp_architect.utils.io import gzip_str
label_desc: Use image node_id 3 for calling a global function with example usage: set_headers(res) without return types