def convert_ints_to_bytes(in_ints, num):
out_bytes= b"<STR_LIT>"<EOL>for val in in_ints:<EOL><INDENT>out_bytes+=struct.pack(mmtf.utils.constants.NUM_DICT[num], val)<EOL><DEDENT>return out_bytes<EOL>
Convert an integer array into a byte arrays. The number of bytes forming an integer
    is defined by num

    :param in_ints: the input integers
    :param num: the number of bytes per int
    :return the integer array