code: def parse_to_list(response):
      """Optimistically parse the response to a list."""
      res = []
  
      if response is None:
          return res
  
      for item in response:
          try:
              res.append(int(item))
          except ValueError:
              try:
                  res.append(float(item))
              except ValueError:
                  res.append(nativestr(item))
          except TypeError:
              res.append(None)
      return res
  
file_path: catboost/contrib/python/redis/py3/redis/commands/helpers.py
imports: import copy
  import random
  import string
  from typing import List, Tuple
  import redis
  from redis.typing import KeysT, KeyT
label_desc: Use image node_id 4 for calling a global function with example usage: parse_to_list(response) and returns: res, res