class_docstr: Tests aspects common to both DAGRegressor and DAGClassifier
class_docstr_tok: ["Tests","aspects","common","to","both","DAGRegressor","and","DAGClassifier"]
code: def test_numpy_fit(self, model, y):
      m = model()
      X = np.random.normal(size=(100, 2))
      m.fit(X, y)
  
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 4 for calling the TestDAGSklearn obj's underlying member method code with example usage: obj.test_numpy_fit(model, y) without return types