def convert_tags(tag):
    """
    Transforms the tags to binary tags w.r.t. location (in vs out) and injury (injury vs no_injury)

    Keyword argument:
    tag: the tag to be transformed (string)
    """
    if tag in ["in_injury","in_no_injury","in_unspec_injury"]:
        inout = "in"
    elif tag in ["out_injury","out_no_injury","out_unspec_injury"]:
        inout = "out"
    else:
        inout = "unspec"
                        
    if tag in ["out_injury","in_injury","unspec_injury"]:
        injury = "injury"
    elif tag in ["out_no_injury","in_no_injury","unspec_no_injury"]:
        injury = "no_injury"
    else:
        injury = "unspec"
                    
    fall = "Fall"
    
    return(tag,fall,inout,injury)