code: def logger_request_response(
      response, url, tt, headers, data, str_data, str_response, method
  ):
      if len(data) > 2000:
          data = data[:1000] + "..." + data[-1000:]
      try:
          if response.status_code == 200:
              if (
                  "code" in response.json()
                  and response.json()["code"] == 200
              ) or (
                  "Code" in response.json()
                  and response.json()["Code"] == 0
              ):
                  logger.debug(
                      f"method: {method}, url: {url}, cost time: {tt}, header: {headers}, payload: {str_data}, response: {str_response}"
                  )
              else:
                  logger.error(
                      f"method: {method}, url: {url}, cost time: {tt}, header: {headers}, payload: {data}, response: {response.text}"
                  )
          else:
              logger.error(
                  f"method: {method}, url: {url}, cost time: {tt}, header: {headers}, payload: {data}, response: {response.text}"
              )
      except Exception as e:
          logger.error(e)
          logger.error(
              f"method: {method}, url: {url}, cost time: {tt}, header: {headers}, payload: {data}, response: {response.text}"
          )
  
imports: import json
  import requests
  import time
  import uuid
  from utils.util_log import test_log
label_desc: Use image node_id 1 for calling a global function with example usage: logger_request_response(response, url, tt, headers, data, str_data, str_response, method) without return types