code: def pairs_to_dict(
      response, decode_keys=False, decode_string_values=False
  ):
      """Create a dict given a list of key/value pairs"""
      if response is None:
          return {}
      if decode_keys or decode_string_values:
          # the iter form is faster, but I don't know how to make that work
          # with a str_if_bytes() map
          keys = response[::2]
          if decode_keys:
              keys = map(str_if_bytes, keys)
          values = response[1::2]
          if decode_string_values:
              values = map(str_if_bytes, values)
          return dict(zip(keys, values))
      else:
          it = iter(response)
          return dict(zip(it, it))
  
imports: import datetime
  from redis.utils import str_if_bytes
label_desc: Use image node_id 13 for calling a global function with example usage: pairs_to_dict(response, decode_keys, decode_string_values) and returns: dict, dict, dict