<｜begin▁of▁sentence｜>### Instruction:
Imagine we're in the midst of preparing for a glamorous photoshoot, where every detail must be meticulously planned and executed. As the makeup artist, you would ensure that the looks you create perfectly embody the theme and enhance the models' features. Similarly, in the realm of coding, certain functions must be executed with precision, adhering strictly to predefined requirements.

In this scenario, consider a foundational "makeup application" function within a grander software application framework, akin to `graspologic`. We want this function to be like a requirements list for a specific makeup routine—one element, the base count (an integer), and the second, the style name (a string).

Just as you would ensure that you're using the correct foundation shade (integer) and the right makeup style (string) for our model, can you describe how `graspologic.preconditions.check_argument_types` acts as our quality checkpoint in the coding process? This function makes sure we've got the numbers and labels precisely lined up before the application begins.

If the shades or styles were mixed up—a blush as a foundation, or a smoky eye labeled as natural look—an error would surely ensue. Can you articulate the type of message one would encounter if this digital 'makeup routine' received the wrong types of inputs, much like if I accidentally used lipstick instead of concealer?
### Response:
from graspologic.preconditions import check_argument_types

# Function that uses check_argument_types to validate inputs
def example_function(arg1: int, arg2: str):
    check_argument_types(arg1, (int,), 'Argument arg1 must be an integer.')
    check_argument_types(arg2, (str,), 'Argument arg2 must be a string.')
    print(f'Arguments are of correct type: {arg1} is int, {arg2} is str')

# Provide valid arguments to the function
example_function(10, 'Graspologic')

# Provide invalid arguments to demonstrate the error
try:
    example_function('incorrect_type', 'Graspologic')
except TypeError as e:
    print(f'Error: {e}')
<|EOT|>
