docs: def deserialize_unicode(data):
          """Preserve unicode objects in Python 2, otherwise return data
          as a string.
  
          :param str data: response string to be deserialized.
          :rtype: str or unicode
          """
          # We might be here because we have an enum modeled as string,
          # and we try to deserialize a partial dict with enum inside
          if isinstance(data, Enum):
              return data
  
          # Consider this is real string
          try:
              if isinstance(data, unicode):
                  return data
          except NameError:
              return str(data)
          else:
              return str(data)