code: def get_db_size(selfs):
      db = mysql.connector.connect(
          user="root",
          password="0xdata",
          host="172.16.2.178",
          database="information_schema",
      )
      cursor_h2o = db.cursor()
  
      cursor_h2o.execute(
          "SELECT table_schema as 'Database', "
          "sum(round(((data_length + index_length) / 1024 / 1024 / 1024), 5)) as 'Size in GB' "
          "FROM TABLES group by table_schema;"
      )
  
      results = cursor_h2o.fetchall()
      widths = []
      columns = []
      pipe = "|"
      separator = "+"
  
      for cd in cursor_h2o.description:
          widths.append(max(cd[2], len(cd[0])))
          columns.append(cd[0])
  
      # Reallocate width length
      widths[0] = 30
  
      for w in widths:
          pipe += " %-" + "%ss |" % (w,)
          separator += "-" * w + "--+"
  
      print("\n*****Size of each database in MySQL Server in GB:*****")
      print(separator)
      print(pipe % tuple(columns))
      print(separator)
      for row in results:
          print(pipe % row)
      print(separator)
  
file_path: h2o-3/scripts/db_check.py
imports: import mysql.connector
label_desc: Use image node_id 3 for calling the CheckDB obj's underlying member method code with example usage: obj.get_db_size(s) without return types