code: def sql_table():
      # conn_url = "jdbc:mysql://172.16.2.178:3306/ingestSQL?&useSSL=false"
      # conn_url = "jdbc:postgresql://mr-0xf2/ingestSQL"
      conn_url = os.getenv("SQLCONNURL")
      table = "citibike20k"
  
      # figure out username and password
      db_type = conn_url.split(":", 3)[1]
      username = password = ""
      if db_type == "mysql":
          username = "root"
          password = "0xdata"
      elif db_type == "postgresql":
          username = password = "postgres"
  
      citi_sql = h2o.import_sql_table(
          conn_url, table, username, password
      )
      citi_csv = h2o.import_file(
          pyunit_utils.locate("smalldata/demos/citibike_20k.csv")
      )
  
      py_citi_sql = citi_sql.as_data_frame(False)[
          1:
      ]  # don't compare headers
      py_citi_csv = citi_csv.as_data_frame(False)[1:]
  
      assert first_1000_equal(py_citi_sql, py_citi_csv)
  
      citi_sql = h2o.import_sql_table(
          conn_url, table, username, password, ["starttime", "bikeid"]
      )
      assert citi_sql.nrow == 2e4
      assert citi_sql.ncol == 2
  
      sql_select = h2o.import_sql_select(
          conn_url,
          "SELECT starttime FROM citibike20k",
          username,
          password,
      )
      assert sql_select.nrow == 2e4
      assert sql_select.ncol == 1
  
imports: import sys, os
  import h2o
  from tests import pyunit_utils
label_desc: Use image node_id 1 for calling a global function with example usage: sql_table() without return types