def METHOD_NAME(client, sample_service, tmp_type, expected_name, expected_subject, version, postage):
    template = create_template(sample_service, template_type=tmp_type)
    auth_header = create_authorization_header(service_id=sample_service.id)
    version_path = "/version/{}".format(version) if version else ""
    response = client.get(
        path="/v2/template/{}{}".format(template.id, version_path),
        headers=[("Content-Type", "application/json"), auth_header],
    )
    assert response.status_code == 200
    assert response.headers["Content-type"] == "application/json"
    json_response = json.loads(response.get_data(as_text=True))
    expected_response = {
        "id": "{}".format(template.id),
        "type": "{}".format(template.template_type),
        "created_at": template.created_at.strftime(DATETIME_FORMAT),
        "updated_at": None,
        "version": template.version,
        "created_by": template.created_by.email_address,
        "body": template.content,
        "subject": expected_subject,
        "name": expected_name,
        "personalisation": {},
        "postage": postage,
    }
    assert json_response == expected_response