code: def request(cls, method, url, **kwargs):
  		
  		methodupper = method.upper()
  		hasdata = 'data' in kwargs
  		if methodupper == 'GET':
  			if hasdata:
  				print("ERROR: Can't do HTTP GET when the 'data' parameter presents")
  				assert False
  			resp = ulr.urlopen(url, **kwargs)
  		elif methodupper == 'POST':
  			if hasdata:
  				resp = ulr.urlopen(url, **kwargs)
  			else:
  				resp = ulr.urlopen(url, data = '', **kwargs)
  		else:
  			raise NotImplementedError()
  
  		return resp
docs: :type method: str