def move_template(src_template_path,<EOL>dest_template_path,<EOL>template_dict):
original_root = os.path.dirname(src_template_path)<EOL>new_root = os.path.dirname(dest_template_path)<EOL>modified_template = _update_relative_paths(template_dict,<EOL>original_root,<EOL>new_root)<EOL>with open(dest_template_path, "<STR_LIT:w>") as fp:<EOL><INDENT>fp.write(yaml_dump(modified_template))<EOL><DEDENT>
Move the SAM/CloudFormation template from ``src_template_path`` to ``dest_template_path``. For convenience, this
method accepts a dictionary of template data ``template_dict`` that will be written to the destination instead of
reading from the source file.

SAM/CloudFormation template can contain certain properties whose value is a relative path to a local file/folder.
This path is always relative to the template's location. Before writing the template to ``dest_template_path`,
we will update these paths to be relative to the new location.

This methods updates resource properties supported by ``aws cloudformation package`` command:
https://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html

You must use this method if you are reading a template from one location, modifying it, and writing it back to a
different location.

Parameters
----------
src_template_path : str
    Path to the original location of the template

dest_template_path : str
    Path to the destination location where updated template should be written to

template_dict : dict
    Dictionary containing template contents. This dictionary will be updated & written to ``dest`` location.