code: def parse_create_function(
      function_name: str,
      if_not_exists: bool,
      function_file_path: str,
      type: str,
      **kwargs,
  ):
      mock_query = (
          f"CREATE FUNCTION IF NOT EXISTS {function_name}"
          if if_not_exists
          else f"CREATE FUNCTION {function_name}"
      )
      if type is not None:
          mock_query += f" TYPE {type}"
          task, model = kwargs["task"], kwargs["model"]
          if task is not None and model is not None:
              mock_query += f" TASK '{task}' MODEL '{model}'"
      else:
          mock_query += f" IMPL '{function_file_path}'"
      mock_query += ";"
  
      stmt = Parser().parse(mock_query)[0]
      assert isinstance(
          stmt, CreateFunctionStatement
      ), "Expected a create function statement"
      return stmt
  
imports: from evadb.parser.create_function_statement import CreateFunctionStatement
  from evadb.parser.create_statement import CreateDatabaseStatement, CreateJobStatement, CreateTableStatement
  from evadb.parser.drop_object_statement import DropObjectStatement
  from evadb.parser.explain_statement import ExplainStatement
  from evadb.parser.insert_statement import InsertTableStatement
  from evadb.parser.load_statement import LoadDataStatement
  from evadb.parser.parser import Parser
  from evadb.parser.rename_statement import RenameTableStatement
  from evadb.parser.select_statement import SelectStatement
  from evadb.parser.set_statement import SetStatement
  from evadb.parser.show_statement import ShowStatement
  from evadb.parser.types import ObjectType
  from evadb.parser.use_statement import UseStatement
label_desc: Use image node_id 4 for calling a global function with example usage: parse_create_function(function_name, if_not_exists, function_file_path, type) and returns: stmt