input: Write a python function to convert a binary string to a decimal number.
  assert bin_to_dec('1100') == 12
  assert bin_to_dec('1010') == 10
  assert bin_to_dec('1111') == 15
output: def bin_to_dec(binary_str):
      return int(binary_str, 2)