code: def bin_to_radix(x, xbits, base, bdigits):
      """Changes radix of a fixed-point number; i.e., converts
      x * 2**xbits to floor(x * 10**bdigits)."""
      return x * (MPZ(base) ** bdigits) >> xbits
  
imports: import math
  from bisect import bisect
  from .backend import xrange
  from .backend import BACKEND, gmpy, sage, sage_utils, MPZ, MPZ_ONE, MPZ_ZERO
label_desc: Use image node_id 8 for calling a global function with example usage: bin_to_radix(x, xbits, base, bdigits) and returns: unknown