def binarize_value(df_element: str, patterns: str) -> int:
    """ Binarizes searching value.

    Parameters:
    ----------
    df_element:
        searching source.
    patterns:
        searching elements.

    Returns:
    ----------
        Binarized value.

    """
    for pattern in patterns:
        if pattern.strip() in str(df_element).split(","):
            return 1
    return 0