def int_to_bytes(value: int) -> bytes:
    """Convert a given number to its representation in bytes.

    Args:
        value (int):
            The value to convert.

    Returns:
        bytes:
            The representation of the given number in bytes.
    """

    return bytes(str(value), "utf-8")