class_docstr: The Twelve Labs API client for the Twelve Labs handler.
  This client is used for accessing the Twelve Labs API endpoints.
class_docstr_tok: ["The","Twelve","Labs","API","client","for","the","Twelve","Labs","handler",".","This","client","is","used","for","accessing","the","Twelve","Labs","API","endpoints","."]
docstr: Get an index by name.
  
  Parameters
  ----------
  index_name : str
      Name of the index to be retrieved.
  
  Returns
  -------
  str
      ID of the index.
docstr_tok: ["Get","an","index","by","name",".","Parameters","--","--","--","--","--","index_name",":","str","Name","of","the","index","to","be","retrieved",".","Returns","--","--","--","-","str","ID","of","the","index","."]
code: def get_index_by_name(self, index_name: str) -> str:
      """
      Get an index by name.
  
      Parameters
      ----------
      index_name : str
          Name of the index to be retrieved.
  
      Returns
      -------
      str
          ID of the index.
      """
  
      params = {
          "index_name": index_name,
      }
  
      result = self._submit_request(
          method="GET",
          endpoint="indexes",
          data=params,
      )
  
      data = result["data"]
      return data[0]["_id"] if data else None
  
file_path: mindsdb/mindsdb/integrations/handlers/twelve_labs_handler/twelve_labs_api_client.py
imports: import time
  import requests
  from typing import Dict, List, Optional
  from requests_toolbelt.multipart.encoder import MultipartEncoder
  from mindsdb.utilities import log
  from mindsdb.integrations.handlers.twelve_labs_handler.settings import twelve_labs_handler_config
label_desc: Use image node_id 3 for calling the TwelveLabsAPIClient obj's underlying member method code with example usage: obj.get_index_by_name(index_name) and returns: unknown