def METHOD_NAME(self, tag, value, step, data_type, expected_error, expected_msg):
    with pytest.raises(expected_error, match=expected_msg):
        create_analytic_dxo(tag=tag, value=value, data_type=data_type, step=step, writer=LogWriterName.TORCH_TB)