code: def parse_debug_object(response):
      "Parse the results of Redis's DEBUG OBJECT command into a Python dict"
      # The 'type' of the object is the first item in the response, but isn't
      # prefixed with a name
      response = str_if_bytes(response)
      response = "type:" + response
      response = dict(kv.split(":") for kv in response.split())
  
      # parse some expected int values from the string response
      # note: this cmd isn't spec'd so these may not appear in all redis versions
      int_fields = (
          "refcount",
          "serializedlength",
          "lru",
          "lru_seconds_idle",
      )
      for field in int_fields:
          if field in response:
              response[field] = int(response[field])
  
      return response
  
imports: import datetime
  from redis.utils import str_if_bytes
label_desc: Use image node_id 2 for calling a global function with example usage: parse_debug_object(response) and returns: response