class_docstr: Tests urllib.request.urlretrieve using the network.
class_docstr_tok: ["Tests","urllib.request.urlretrieve","using","the","network","."]
code: def test_data_header(self):
      with self.urlretrieve(self.logo) as (file_location, fileheaders):
          datevalue = fileheaders.get("Date")
          dateformat = "%a, %d %b %Y %H:%M:%S GMT"
          try:
              time.strptime(datevalue, dateformat)
          except ValueError:
              self.fail("Date value not in %r format" % dateformat)
  
imports: import unittest
  from test import support
  from test.support import os_helper
  from test.support import socket_helper
  import contextlib
  import socket
  import urllib.parse
  import urllib.request
  import os
  import email.message
  import time
label_desc: Use image node_id 6 for calling the urlretrieveNetworkTests obj's underlying member method code with example usage: obj.test_data_header() without return types