def METHOD_NAME(
    create_example_agent, derivation_input_set, expected_error_msg
):
    """
    Test whether forecasting agent detects invalid input markups as expected
    """
    # Create agent instance without registration in KG
    agent = create_example_agent(register_agent=False)
    with pytest.raises(TypeError) as exc_info:
        # Directly call input validation function and assert exception type
        agent.validate_input_values(inputs=derivation_input_set, derivationIRI='TestDerivation')
    # Check if expected error message is raised
    assert expected_error_msg in str(exc_info.value)