Write a function that converts any integer up to 3999 to its complement in Roman numerals.
Interpret "complement" as the integer's canonical Roman numeral representation, using subtractive forms such as IV, IX, XL, XC, CD, and CM. Implement def integer_to_roman(num):, accepting an integer from 1 through 3999 and returning a string. For example, 58 returns LVIII, and 1994 returns MCMXCIV.
def integer_to_roman(num):