code: def test_count_digits():
      assert count_digits(55, 2) == {1: 5, 0: 1}
      assert count_digits(55, 10) == {5: 2}
      n = count_digits(123)
      assert n[4] == 0 and type(n[4]) is int
  
imports: from sympy.ntheory import count_digits, digits, is_palindromic
  from sympy.core.intfunc import num_digits
  from sympy.testing.pytest import raises
label_desc: Use image node_id 3 for calling a global function with example usage: test_count_digits() without return types