def METHOD_NAME(cls, category):
    if not category:
        return None
    if isinstance(category, int):
        return category
    value = [y[0] for x, y in enumerate(cls.CATEGORY_AFFECTED_TYPE) if y[1] == category]
    if len(value) == 1:
        return value[0]
    else:
        return None