docstr: Use TYPE to determine the type of data to load.
docstr_tok: ["Use","TYPE","to","determine","the","type","of","data","to","load","."]
code: def exec(self, *args, **kwargs):
      """
      Use TYPE to determine the type of data to load.
      """
  
      # invoke the appropriate executor
      if self.node.file_options["file_format"] is None:
          err_msg = "Invalid file format, please use supported file formats: CSV | VIDEO | IMAGE | DOCUMENT | PDF"
          raise ExecutorError(err_msg)
      if self.node.file_options["file_format"] in [
          FileFormatType.VIDEO,
          FileFormatType.IMAGE,
          FileFormatType.DOCUMENT,
          FileFormatType.PDF,
      ]:
          executor = LoadMultimediaExecutor(self.db, self.node)
      elif self.node.file_options["file_format"] == FileFormatType.CSV:
          executor = LoadCSVExecutor(self.db, self.node)
  
      # for each batch, exec the executor
      for batch in executor.exec():
          yield batch
  
file_path: evadb/evadb/executor/load_executor.py
imports: from evadb.database import EvaDBDatabase
  from evadb.executor.abstract_executor import AbstractExecutor
  from evadb.executor.executor_utils import ExecutorError
  from evadb.executor.load_csv_executor import LoadCSVExecutor
  from evadb.executor.load_multimedia_executor import LoadMultimediaExecutor
  from evadb.parser.types import FileFormatType
  from evadb.plan_nodes.load_data_plan import LoadDataPlan
label_desc: Use image node_id 2 for calling the LoadDataExecutor obj's underlying member method code with example usage: obj.exec() without return types