<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def label_from_bin(buf):
 """ Converts binary representation label to integer. :param buf: Binary representation of label. :return: MPLS Label and BoS bit. """


    mpls_label = type_desc.Int3.to_user(six.binary_type(buf))
    return mpls_label >> 4, mpls_label & 1