code: def decode(bstr):
    
  
    bstr = bstr.replace(b':', b'')
    if len(bstr) != 12:
      raise ValueError('not a valid MAC address: {!r}'.format(bstr))
  
    try:
      return int(bstr, 16)
    except ValueError:
      raise ValueError('not a valid MAC address: {!r}'.format(bstr))
docs: Decodes an ASCII encoded binary MAC address tring into a number.