code: def test_parse_template():
      template_qa_prompt = (
          "Context: {context}, Question: {question} Answer:"
      )
      template_qa_completion = "{answer}"
      template_prompt = "{prompt}"
      template_completion = "{completion}"
      assert parse_template(template_qa_prompt) == [
          "context",
          "question",
      ]
      assert parse_template(template_qa_completion) == ["answer"]
      assert parse_template(template_prompt) == ["prompt"]
      assert parse_template(template_completion) == ["completion"]
  
imports: import pandas
  import pytest
  from ..customization_dataset_preparation import convert_into_prompt_completion_only, convert_into_template, drop_duplicated_rows, drop_unrequired_fields, get_common_suffix, get_prepared_filename, parse_template, recommend_hyperparameters, show_first_example_in_df, split_into_train_validation, template_mapper, validate_template, warn_and_drop_long_samples, warn_completion_is_not_empty, warn_duplicated_rows, warn_imbalanced_completion, warn_low_n_samples, warn_missing_suffix
label_desc: Use image node_id 6 for calling a global function with example usage: test_parse_template() without return types