You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: buildfile.m
    path of file: ./repos/Simscape-Battery-Electric-Vehicle-Model/Components/BatteryHighVoltage
    
    the code of the file until where you have to start completion: function plan = buildfile
%% Define tasks for `buildtool` command
% Copyright 2023 The MathWorks, Inc.

top_folder = currentProject().RootFolder;

component_path = fullfile(top_folder, "Components", "BatteryHighVoltage");

test_definitions = [
  fullfile(component_path, "Test", "BatteryHV_UnitTest.m")
  fullfile(component_path, "Test", "BatteryHV_UnitTest_MQC.m")
  ];

% This `buildfile` function is used by `buildtool` to perform the following tasks.
%
% - Check code issues.
% - Run unit tests.
%
% To run this function, take the following steps.
%
% 1. Change the working folder to a folder where this function is stored.
%
% 2. Run `buildtool` in Command Window.
%    `buildtool` searches `buildfile.m` file in the working folder and uses it
%    to perform tasks defined in there.
%
% The test task used in this function is supported by R2023b or newer MATLAB.
% For information about `buildtool` and `buildfile.m`, see the documentation.
%
% - buildtool
%   https://mathworks.com/help/matlab/ref/buildtool.html
%
% - Task for running tests
%   https://mathworks.com/help/matlab/ref/matlab.buildtool.tasks.testtask-class.html

%% Create a build plan object
% A build plan object is required to define tasks.
% See the documentation for details.
% - https://mathworks.com/help/matlab/ref/buildplan.html

plan = buildplan(localfunctions);

    
function plan = buildfile
%% Define tasks for `buildtool` command
% Copyright 2023 The MathWorks, Inc.

top_folder = currentProject().RootFolder;

component_path = fullfile(top_folder, "Components", "BatteryHighVoltage");

test_definitions = [
  fullfile(component_path, "Test", "BatteryHV_UnitTest.m")
  fullfile(component_path, "Test", "BatteryHV_UnitTest_MQC.m")
  ];

% This `buildfile` function is used by `buildtool` to perform the following tasks.
%
% - Check code issues.
% - Run unit tests.
%
% To run this function, take the following steps.
%
% 1. Change the working folder to a folder where this function is stored.
%
% 2. Run `buildtool` in Command Window.
%    `buildtool` searches `buildfile.m` file in the working folder and uses it
%    to perform tasks defined in there.
%
% The test task used in this function is supported by R2023b or newer MATLAB.
% For information about `buildtool` and `buildfile.m`, see the documentation.
%
% - buildtool
%   https://mathworks.com/help/matlab/ref/buildtool.html
%
% - Task for running tests
%   https://mathworks.com/help/matlab/ref/matlab.buildtool.tasks.testtask-class.html

%% Create a build plan object
% A build plan object is required to define tasks.
% See the documentation for details.
% - https://mathworks.com/help/matlab/ref/buildplan.html

plan = buildplan(localfunctions);

%% Define a test task
% For information about the test task of buildtool, see the documentation.
% - https://mathworks.com/help/matlab/ref/matlab.buildtool.tasks.testtask-class.html

plan("Test") = matlab.buildtool.tasks.TestTask( ...
  SourceFiles = component_path, ...
  TestResults = ["test-results.xml", "test-results.pdf"], ...
  CodeCoverageResults = ["code-coverage.html", "code-coverage.xml"] );

plan("Test").Tests = test_definitions;

%% Define custom tasks
% These tasks are defined as local functions in this file.

plan("LiveScriptToJupyterNotebook").Inputs = "**/*.mlx";
plan("LiveScriptToJupyterNotebook").Outputs = replace(plan("LiveScriptToJupyterNotebook").Inputs, ".mlx", ".ipynb");
plan("LiveScriptToJupyterNotebook").Depend