def i2b(value: int) ->bytes:
    """
    Convert integer value to bytes

    Args:
        value (``int``):
            Value to convert

    Returns:
        Resulting ``bytes`` object
    """
    return int.to_bytes(value, length=(value.bit_length() + 8 - 1) // 8,
        byteorder='big', signed=False)
