def METHOD_NAME(request, context):
    t = Template(get_pkg_data_contents('data/tap/capabilities.xml'))
    capabilities = t.substitute(security_methods=method_elements)
    return capabilities.encode('utf-8')