def METHOD_NAME(location):
    contexts = []
    if ":" in location:
        sourcefile, linenumber = location.split(":", 1)
    else:
        sourcefile, linenumber = location, None
    contexts.append(("sourcefile", sourcefile))
    if linenumber:
        contexts.append(("linenumber", linenumber))
    return contexts