code: def _get_request_body(request_body):
      '''Converts an object into a request body.  If it's None
      we'll return an empty string, if it's one of our objects it'll
      convert it to XML and return it.  Otherwise we just use the object
      directly'''
      if request_body is None:
          return b''
  
      if isinstance(request_body, bytes) or isinstance(request_body, IOBase):
          return request_body
  
      if isinstance(request_body, _unicode_type):
          return request_body.encode('utf-8')
  
      request_body = str(request_body)
      if isinstance(request_body, _unicode_type):
          return request_body.encode('utf-8')
  
      return request_bodf _get_request_body(request_body):
      '''Converts an object into a request body.  If it's None
      we'll return an empty string, if it's one of our objects it'll
      convert it to XML and return it.  Otherwise we just use the object
      directly'''
      if request_body is None:
          return b''
  
      if isinstance(request_body, bytes) or isinstance(request_body, IOBase):
          return request_body
  
      if isinstance(request_body, _unicode_type):
          return request_body.encode('utf-8')
  
      request_body = str(request_body)
      if isinstance(request_body, _unicode_type):
          return request_body.encode('utf-8')
  
      return request_body
docs: Converts an object into a request body.  If it's None
      we'll return an empty string, if it's one of our objects it'll
      convert it to XML and return it.  Otherwise we just use the object
      directly