def METHOD_NAME(**args):
    """Inserts a SCENE to an existing FILE or creates a new FILE.
    SCENE is the name of the scene that will be inserted.
    FILE is the name of file in which the SCENE will be inserted.
    """
    template_name = click.prompt(
        "template",
        type=click.Choice(get_template_names(), False),
        default="Default",
    )
    METHOD_NAME = (get_template_path() / f"{template_name}.mtp").resolve().read_text()
    METHOD_NAME = METHOD_NAME.replace(template_name + "Template", args["scene_name"], 1)
    if args["file_name"]:
        file_name = Path(args["file_name"])
        if file_name.suffix != ".py":
            file_name = file_name.with_suffix(file_name.suffix + ".py")
        if file_name.is_file():
            # file exists so we are going to append new scene to that file
            with file_name.open("a") as f:
                f.write("\n\n\n" + METHOD_NAME)
        else:
            # file does not exist so we create a new file, append the scene and prepend the import statement
            file_name.write_text("\n\n\n" + METHOD_NAME)
            add_import_statement(file_name)
    else:
        # file name is not provided so we assume it is main.py
        # if main.py does not exist we do not continue
        with Path("main.py").open("a") as f:
            f.write("\n\n\n" + METHOD_NAME)