code: def unpackbits(x, num_bits):
      """Convert a decimal value numpy.ndarray into multi-binary value numpy.ndarray ([1,2]->[[0,1],[1,0]])
  
      Args:
          x (numpy.ndarray): Decimal array.
          num_bits (int): The max length of the converted binary value.
      """
      xshape = list(x.shape)
      x = x.reshape([-1, 1])
      to_and = 2 ** np.arange(num_bits).reshape([1, num_bits])
      return (
          (x & to_and)
          .astype(bool)
          .astype(int)
          .reshape(xshape + [num_bits])
      )
  
file_path: recommenders/recommenders/models/lightgbm/lightgbm_utils.py
imports: import logging
  import numpy
  import category_encoders
  from tqdm import tqdm
  import collections
  import gc
label_desc: Use image node_id 1 for calling a global function with example usage: unpackbits(x, num_bits) and returns: unknown