(transformers, column_name, **modifiers)
return tag
Convert a column to a tag that will be used in every subsequent submission.

    For example, if you named the column `env` and the column returned the value `prod1`, all submissions
    from that row will be tagged by `env:prod1`.

    This also accepts an optional modifier called `boolean` that when set to `true` will transform the result
    to the string `true` or `false`. So for example if you named the column `alive` and the result was the
    number `0` the tag will be `alive:false`.
Convert a column to a tag that will be used in every subsequent submission.
Convert a column to a tag that will be used in every subsequent submission .
def get_tag(transformers, column_name, **modifiers):
    # type: (Dict[str, Transformer], str, Any) -> Transformer
    """
    Convert a column to a tag that will be used in every subsequent submission.

    For example, if you named the column `env` and the column returned the value `prod1`, all submissions
    from that row will be tagged by `env:prod1`.

    This also accepts an optional modifier called `boolean` that when set to `true` will transform the result
    to the string `true` or `false`. So for example if you named the column `alive` and the result was the
    number `0` the tag will be `alive:false`.
    """
    template = '{}:{{}}'.format(column_name)
    boolean = is_affirmative(modifiers.pop('boolean', None))

    def tag(_, value, **kwargs):
        # type: (List, str, Dict[str, Any]) -> str
        if boolean:
            value = str(is_affirmative(value)).lower()

        return template.format(value)

    return tag
def get_tag ( transformers , column_name , * * modifiers ) : # type: (Dict[str, Transformer], str, Any) -> Transformer template = '{}:{{}}' . format ( column_name ) boolean = is_affirmative ( modifiers . pop ( 'boolean' , None ) ) def tag ( _ , value , * * kwargs ) : # type: (List, str, Dict[str, Any]) -> str if boolean : value = str ( is_affirmative ( value ) ) . lower ( ) return template . format ( value ) return tag