code: def wait_for_net(self, timeout=None, wait_polling_interval=None):
          
          if timeout is None:
              timeout = self._timeout
          if wait_polling_interval is None:
              wait_polling_interval = self._wait_polling_interval
  
          self._logger.info("Waiting for network connection")
          poll_wait(self.get_ip_address, timeout=timeout)
docs: Wait for the device to be assigned an IP address.
  
          :param timeout: Maximum time to wait for an IP address to be defined
          :param wait_polling_interval: Interval at which to poll for ip address.