import json


def get_variability_model(varParamStr):
    """
    Extract the variability model from the varParamStr column.
    """
    if varParamStr == 'None':
        return 'None'
    params = json.loads(varParamStr)
    try:
        return params['m']
    except KeyError:
        return params['varMethodName']