code: def bitslice(x: int, start_bit: int, slice_length: int) -> int:
      ones_mask: int = int(2**slice_length - 1)
      return (x & (ones_mask << start_bit)) >> start_bit
  
file_path: ludwig/ludwig/utils/h3_util.py
imports: from typing import List, NamedTuple
label_desc: Use image node_id 4 for calling a global function with example usage: bitslice(x, start_bit, slice_length) and returns: unknown