code: def create_table(
      self,
      table_name: Identifier,
      result_set,
      is_replace=False,
      **kwargs,
  ):
      # is_create - create table
      # is_replace - drop table if exists
      # is_create==False and is_replace==False: just insert
  
      from mindsdb.api.executor.controllers.session_controller import (
          SessionController,
      )
  
      session = SessionController()
  
      table_name = table_name.parts[-1]
      kb_table = session.kb_controller.get_table(
          table_name, self.project.id
      )
      if kb_table:
          # this is the knowledge db
          if is_replace:
              kb_table.clear()
  
          df = result_set.to_df()
          return kb_table.insert(df)
      raise NotImplementedError(f"Cant create table {table_name}")
  
file_path: mindsdb/mindsdb/api/executor/datahub/datanodes/project_datanode.py
imports: from copy import deepcopy
  import pandas
  from mindsdb_sql import parse_sql
  from mindsdb_sql.parser.ast import BinaryOperation, Identifier, Constant, Update, Select, Delete
  from mindsdb.utilities.exception import EntityNotExistsError
  from mindsdb.api.executor.datahub.datanodes.datanode import DataNode
  from mindsdb.api.executor.datahub.classes.tables_row import TablesRow
  from mindsdb.api.executor import SQLQuery
  from mindsdb.api.executor.utilities.sql import query_df
  from mindsdb.interfaces.query_context.context_controller import query_context_controller
label_desc: Use image node_id 8 for calling the ProjectDataNode obj's underlying member method code with example usage: obj.create_table(table_name, result_set, is_replace) and returns: kb_table