code: def is_connected():
      try:
          # connect to the host -- tells us if the host is actually
          # reachable
          with socket.create_connection(("www.google.com", 80)):
              return True
      except OSError:
          pass
      return False
  
imports: import os
  import unittest
  import socket
  from tick.dataset.download_helper import fetch_tick_dataset, clear_dataset, get_data_home
label_desc: Use image node_id 1 for calling a global function with example usage: is_connected() and returns: False, True