docstr: Get the table catalog entry with given table name.
  Arguments:
      database_name  (str): Database to which table belongs # TODO:
      use this field
      table_name (str): name of the table
  Returns:
      TableCatalogEntry - catalog entry for given table_name
docstr_tok: ["Get","the","table","catalog","entry","with","given","table","name",".","Arguments",":","database_name","(","str",")",":","Database","to","which","table","belongs","#","TODO",":","use","this","field","table_name","(","str",")",":","name","of","the","table","Returns",":","TableCatalogEntry","-","catalog","entry","for","given","table_name"]
code: def get_entry_by_name(
      self, database_name, table_name, return_alchemy=False
  ) -> TableCatalogEntry:
      """
      Get the table catalog entry with given table name.
      Arguments:
          database_name  (str): Database to which table belongs # TODO:
          use this field
          table_name (str): name of the table
      Returns:
          TableCatalogEntry - catalog entry for given table_name
      """
      entry = self.session.execute(
          select(self.model).filter(self.model._name == table_name)
      ).scalar_one_or_none()
      if entry:
          return entry if return_alchemy else entry.as_dataclass()
      return entry
  
file_path: evadb/evadb/catalog/services/table_catalog_service.py
imports: from sqlalchemy.orm import Session
  from sqlalchemy.sql.expression import select
  from evadb.catalog.catalog_type import TableType
  from evadb.catalog.models.table_catalog import TableCatalog, TableCatalogEntry
  from evadb.catalog.services.base_service import BaseService
  from evadb.catalog.services.column_catalog_service import ColumnCatalogService
  from evadb.utils.errors import CatalogError
  from evadb.utils.logging_manager import logger
label_desc: Use image node_id 4 for calling the TableCatalogService obj's underlying member method code with example usage: obj.get_entry_by_name(database_name, table_name, return_alchemy) and returns: entry, unknown