code: def parse_headers(req_headers):
      """
      Load headers from request to dictionary
  
      Args:
          req_headers (dict): the request's headers
  
      Returns:
          dict: dictionary hosting the request headers
      """
      headers_lst = [
          "CONTENT-TYPE",
          "CONTENT-ENCODING",
          "RESPONSE-FORMAT",
          "CLEAN",
          "DISPLAY-POST-PREPROCCES",
          "DISPLAY-TOKENS",
          "DISPLAY-TOKEN-TEXT",
          "IS-HTML",
      ]
      headers = {}
      for header_tag in headers_lst:
          if header_tag in req_headers:
              headers[header_tag] = req_headers[header_tag]
          else:
              headers[header_tag] = None
      return headers
  
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 2 for calling a global function with example usage: parse_headers(req_headers) and returns: headers