class_docstr: Tests urllib.request.urlretrieve using the network.
class_docstr_tok: ["Tests","urllib.request.urlretrieve","using","the","network","."]
code: def test_basic(self):
      # Test basic functionality.
      with self.urlretrieve(self.logo) as (file_location, info):
          self.assertTrue(
              os.path.exists(file_location),
              "file location returned by"
              " urlretrieve is not a valid path",
          )
          with open(file_location, "rb") as f:
              self.assertTrue(
                  f.read(),
                  "reading from the file location returned"
                  " by urlretrieve failed",
              )
  
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 3 for calling the urlretrieveNetworkTests obj's underlying member method code with example usage: obj.test_basic() without return types