def get_bit(self, position: int):
if position > (self._bit_width - <NUM_LIT:1>):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if self._value & (<NUM_LIT:1> << position):<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>
Returns the bit value at position

:param position: integer between 0 and <width>, inclusive
:return: the value at position as a integer