def METHOD_NAME(integer, padded_length=8, debug=0):
    '''
    Convert integer number to hexidecimal. Return value is zero-padded at the beginning
    until its length matches the value passed in "padded_length"
    '''
    outp = (format(integer, "#0{}x".format(
        padded_length+2)).replace("0x", "")).upper()
    return outp