code: def _get_kth_bit(x: int, k: int) -> int:
      """Returns the kth bit in the mask from the right."""
      mask = 1 << k
      return x & mask
  
imports: import copy
  from typing import List
label_desc: Use image node_id 9 for calling a global function with example usage: _get_kth_bit(x, k) and returns: unknown