<｜begin▁of▁sentence｜>### Instruction:
A developer is writing a function that processes numerical data, which must only accept positive integers as input. Before processing the data, the developer wants to enforce this constraint and raise a ValueError with a message if the input is not a positive integer. How can graspologic's check_argument function be used to implement this precondition check?
### Response:
from graspologic.preconditions import check_argument

# Suppose you have a function that requires a positive integer as an argument
def process_data(value):
    # Use check_argument to assert that the condition is met
    check_argument(value > 0, 'Value must be a positive integer')
    # Rest of the function logic goes here
    print(f'Processing data: {value}')

try:
    process_data(-10)
except ValueError as e:
    print(e)
<|EOT|>
