class_docstr: Base class for handlers associated to the applications APIs (e.g. twitter, slack, discord  etc.)
class_docstr_tok: ["Base","class","for","handlers","associated","to","the","applications","APIs","(","e.g",".","twitter",",","slack",",","discord","etc",".",")"]
docstr: Register the data resource. For e.g if you are using Twitter API it registers the `tweets` resource from `/api/v2/tweets`.
docstr_tok: ["Register","the","data","resource",".","For","e.g","if","you","are","using","Twitter","API","it","registers","the","`","tweets","`","resource","from","`","\/api\/v2\/tweets","`","."]
code: def _register_table(self, table_name: str, table_class: Any):
      """
      Register the data resource. For e.g if you are using Twitter API it registers the `tweets` resource from `/api/v2/tweets`.
      """
      if table_name in self._tables:
          raise TableAlreadyExists(
              f"Table with name {table_name} already exists for this handler"
          )
      self._tables[table_name] = table_class
  
imports: from typing import Any
  import ast
  import pandas
  from mindsdb_sql.parser.ast import ASTNode, Select, Insert, Update, Delete
  from mindsdb_sql.parser.ast.select.identifier import Identifier
  from mindsdb.integrations.libs.base import BaseHandler
  from mindsdb.integrations.libs.api_handler_exceptions import TableAlreadyExists, TableNotFound
  from mindsdb.integrations.libs.response import HandlerResponse, RESPONSE_TYPE
label_desc: Use image node_id 2 for calling the APIHandler obj's underlying member method code with example usage: obj._register_table(table_name, table_class) without return types