def extract_config_name(config):
    """Extract configuration names.

    Parameters
    ----------
    config : str
        Configuration as a string in the format of 'using model = xxx'.

    Returns
    -------
    str
        Extracted name from the statement, e.g. 'model' for 'using model = xxx'.

    Raises
    ------
    RuntimeError
        Invalid config.
    """
    pattern = re.compile(r"\s*using\s(.*?)\s=")
    decl = config.split("\n")[1]
    match = pattern.match(decl)
    if match is None:
        raise RuntimeError("Invalid config: \n" + config)
    return match.groups()[0]
Extract configuration names.

Parameters
----------
config : str
Configuration as a string in the format of 'using model = xxx'.

Returns
-------
str
Extracted name from the statement, e.g. 'model' for 'using model = xxx'.

Raises
------
RuntimeError
Invalid config.
python/aitemplate/backend/rocm/normalization/norm_common.py