code: def pairs_to_dict_typed(response, type_info):
      it = iter(response)
      result = {}
      for key, value in zip(it, it):
          if key in type_info:
              try:
                  value = type_info[key](value)
              except Exception:
                  # if for some reason the value can't be coerced, just use
                  # the string value
                  pass
          result[key] = value
      return result
  
imports: import datetime
  from redis.utils import str_if_bytes
label_desc: Use image node_id 14 for calling a global function with example usage: pairs_to_dict_typed(response, type_info) and returns: result