input: Write a python function to convert binary numbers to decimal.
  assert binary_to_decimal('1010') == 10
  assert binary_to_decimal('1111') == 15
  assert binary_to_decimal('1001') == 9
output: def binary_to_decimal(binary_str):
      return int(binary_str, 2)