def METHOD_NAME(components):
    v = components.get("verbal")
    s = components.get("somatic")
    m = components.get("material")
    if isinstance(m, bool):
        parsedm = "M"
    else:
        parsedm = f"M ({m})"
    comps = []
    if v:
        comps.append("V")
    if s:
        comps.append("S")
    if m:
        comps.append(parsedm)
    return ", ".join(comps)