code: def convert_body_to_unicode(resp):
      
      if type(resp) is not dict:
          # Some of the tests just serialize and deserialize a string.
          return _convert_string_to_unicode(resp)
      else:
          body = resp.get('body')
  
          if body is not None:
              try:
                  body['string'] = _convert_string_to_unicode(
                      body['string']
                  )
              except (KeyError, TypeError, AttributeError):
                  # The thing we were converting either wasn't a dictionary or
                  # didn't have the keys we were expecting.
                  # For example request object has no 'string' key.
                  resp['body'] = _convert_string_to_unicode(body)
  
      return resp
docs: If the request or responses body is bytes, decode it to a string
      (for python3 support)