def METHOD_NAME(sysname, memory_name):
    tmpl = "{device}.memory.{memname}"
    return tmpl.format(
        device=metric_prefix_for_device(sysname),
        memname=escape_metric_name(memory_name),
    )