def METHOD_NAME(label):
    # When computing outs derived from srcs in a different package (i.e., when
    # srcs labels have a colon), we only want their package-relative stem (the
    # dirname and basename after the colon).
    if ":" in label:
        label = label.split(":")[-1]
    return dirname(label), basename(label)