def get_prefix0_format_string(item_num):
    """Get the prefix 0 format string from item_num.

    For example, 3 items would result in {:01d}
    """
    max_digit_num = len(str(item_num))
    output_pattern = '{:0' + str(max_digit_num) + 'd}'
    return output_pattern