class_docstr: Tests aspects common to both DAGRegressor and DAGClassifier
class_docstr_tok: ["Tests","aspects","common","to","both","DAGRegressor","and","DAGClassifier"]
code: def test_input_type_assertion(self, val, msg, error, model):
      with pytest.raises(error, match=msg):
          model(**val)
  
imports: import os
  import IPython
  import networkx
  import numpy
  import pandas
  import pytest
  import torch
  from sklearn.exceptions import NotFittedError
  from sklearn.gaussian_process.kernels import RBF
  from sklearn.model_selection import KFold, cross_val_score
  from causalnex.structure import data_generators
  from causalnex.structure.pytorch import DAGClassifier, DAGRegressor
label_desc: Use image node_id 1 for calling the TestDAGSklearn obj's underlying member method code with example usage: obj.test_input_type_assertion(val, msg, error, model) without return types