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: Create video indexing tasks.
  
  Parameters
  ----------
  index_id : str
      ID of the index.
  
  video_urls : List[str], Optional
      List of video urls to be indexed. Either video_urls or video_files should be provided. This validation is handled by TwelveLabsHandlerModel.
  
  video_files : List[str], Optional
      List of video files to be indexed. Either video_urls or video_files should be provided. This validation is handled by TwelveLabsHandlerModel.
  
  Returns
  -------
  List[str]
      List of task IDs created.
docstr_tok: ["Create","video","indexing","tasks",".","Parameters","--","--","--","--","--","index_id",":","str","ID","of","the","index",".","video_urls",":","List","[","str","]",",","Optional","List","of","video","urls","to","be","indexed",".","Either","video_urls","or","video_files","should","be","provided",".","This","validation","is","handled","by","TwelveLabsHandlerModel",".","video_files",":","List","[","str","]",",","Optional","List","of","video","files","to","be","indexed",".","Either","video_urls","or","video_files","should","be","provided",".","This","validation","is","handled","by","TwelveLabsHandlerModel",".","Returns","--","--","--","-","List","[","str","]","List","of","task","IDs","created","."]
code: def create_video_indexing_tasks(
      self,
      index_id: str,
      video_urls: List[str] = None,
      video_files: List[str] = None,
  ) -> List[str]:
      """
      Create video indexing tasks.
  
      Parameters
      ----------
      index_id : str
          ID of the index.
  
      video_urls : List[str], Optional
          List of video urls to be indexed. Either video_urls or video_files should be provided. This validation is handled by TwelveLabsHandlerModel.
  
      video_files : List[str], Optional
          List of video files to be indexed. Either video_urls or video_files should be provided. This validation is handled by TwelveLabsHandlerModel.
  
      Returns
      -------
      List[str]
          List of task IDs created.
      """
  
      task_ids = []
  
      if video_urls:
          logger.info(
              "video_urls has been set, therefore, it will be given precedence."
          )
          logger.info("Creating video indexing tasks for video urls.")
  
          for video_url in video_urls:
              task_ids.append(
                  self._create_video_indexing_task(
                      index_id=index_id, video_url=video_url
                  )
              )
  
      elif video_files:
          logger.info(
              "video_urls has not been set, therefore, video_files will be used."
          )
          logger.info("Creating video indexing tasks for video files.")
  
          for video_file in video_files:
              task_ids.append(
                  self._create_video_indexing_task(
                      index_id=index_id, video_file=video_file
                  )
              )
  
      return task_ids
  
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 4 for calling the TwelveLabsAPIClient obj's underlying member method code with example usage: obj.create_video_indexing_tasks(index_id, video_urls, video_files) and returns: task_ids