def METHOD_NAME(module):
    if hasattr(module, "_vyos_capabilities"):
        return module._vyos_capabilities
    try:
        capabilities = Connection(module._socket_path).METHOD_NAME()
    except ConnectionError as exc:
        module.fail_json(msg=to_text(exc, errors="surrogate_then_replace"))
    module._vyos_capabilities = json.loads(capabilities)
    return module._vyos_capabilities