code: def test_get_table_catalog_entry_when_table_exists(
      self, ds_mock, initdb_mock
  ):
      catalog = CatalogManager(MagicMock())
      table_name = "name"
      database_name = "database"
      row_id = 1
      table_obj = MagicMock(row_id=row_id)
      ds_mock.return_value.get_entry_by_name.return_value = table_obj
  
      actual = catalog.get_table_catalog_entry(
          table_name,
          database_name,
      )
      ds_mock.return_value.get_entry_by_name.assert_called_with(
          database_name, table_name
      )
      self.assertEqual(actual.row_id, row_id)
  
imports: import unittest
  import mock
  import pytest
  from mock import ANY, MagicMock
  from evadb.catalog.catalog_manager import CatalogManager
  from evadb.catalog.catalog_type import ColumnType, TableType
  from evadb.catalog.catalog_utils import get_video_table_column_definitions
  from evadb.catalog.models.column_catalog import ColumnCatalogEntry
  from evadb.catalog.models.function_catalog import FunctionCatalogEntry
  from evadb.parser.table_ref import TableInfo
  from evadb.parser.types import FileFormatType
label_desc: Use image node_id 6 for calling the CatalogManagerTests obj's underlying member method code with example usage: obj.test_get_table_catalog_entry_when_table_exists(ds_mock, initdb_mock) without return types