def METHOD_NAME(name):
    if name is None:
        raise RuntimeError(
            "Illegal name=None supplied to cpxlp_label_from_name function"
        )
    return str.translate(name, _cpxlp_translation_table)