class_docstr: Class implementing database connection.
  
  Example
  -------
  >>> AMPLIGRAPH_DATA_HOME='/your/path/to/datasets/'
  >>> # Initialize GraphDataLoader from .csv file
  >>> data = GraphDataLoader("data.csv", backend=SQLiteAdapter)
  >>> # Initialize GraphDataLoader from .txt file using indexer
  >>> # to map entities to integers
  >>> data = GraphDataLoader(AMPLIGRAPH_DATA_HOME + "fb15k/test.txt",
  >>>                        backend=SQLiteAdapter("database.db",
  >>>                        use_indexer=True))
  >>> for elem in data:
  >>>     print(elem)
  >>>     break
  [(1, 1, 2)]
  >>> # Populate the database with raw triples for training
  >>> with SQLiteAdapter("database.db") as backend:
  >>>     backend.populate(AMPLIGRAPH_DATA_HOME + "fb15k/train.txt",
  >>>                      dataset_type="train")
  >>> # Populate the database with indexed triples for training
  >>> with SQLiteAdapter("database.db", use_indexer=True) as backend:
  >>>     backend.populate(AMPLIGRAPH_DATA_HOME + "fb15k/train.txt",
  >>>                      dataset_type="train")
docstr: Gets the size of the given table [with specified condition].
  
  Parameters
  ----------
  table: str
       Table for which to obtain the size.
  condition: str
       Condition to count only a subset of data.
  
  Returns
  -------
  count: int
       Number of records in the table.
docstr_tok: ["Gets","the","size","of","the","given","table","[","with","specified","condition","]",".","Parameters","--","--","--","--","--","table",":","str","Table","for","which","to","obtain","the","size",".","condition",":","str","Condition","to","count","only","a","subset","of","data",".","Returns","--","--","--","-","count",":","int","Number","of","records","in","the","table","."]
code: def get_data_size(self, table="triples_table", condition=""):
      """Gets the size of the given table [with specified condition].
  
      Parameters
      ----------
      table: str
           Table for which to obtain the size.
      condition: str
           Condition to count only a subset of data.
  
      Returns
      -------
      count: int
           Number of records in the table.
  
      """
      query = "SELECT count(*) from {} {};".format(table, condition)
      count = self._execute_query(query)
      if count is None:
          logger.debug("Table is empty or not such table exists.")
          return count
      elif not isinstance(count, list) or not isinstance(
          count[0], tuple
      ):
          raise ValueError(
              "Cannot get count for the table with\
                      provided condition."
          )
      # logger.debug(count)
      return count[0][0]
  
imports: import logging
  import os
  import sqlite3
  import tempfile
  from sqlite3 import Error
  from urllib.request import pathname2url
  import numpy
  import pandas
  import tensorflow
  from ampligraph.utils.profiling import get_human_readable_size
  from .data_indexer import DataIndexer
label_desc: Use image node_id 20 for calling the SQLiteAdapter obj's underlying member method code with example usage: obj.get_data_size(table, condition) and returns: count, count