code: def net_fit(self, net, data):
      # Careful, don't call additional fits on this, since that would have
      # side effects on other tests.
      X, y = data
      return net.fit(X, y)
  
imports: from functools import partial
  import numpy
  import pytest
  from sklearn.base import clone
  from skorch.tests.conftest import INFERENCE_METHODS
label_desc: Use image node_id 8 for calling the TestNeuralNetRegressor obj's underlying member method code with example usage: obj.net_fit(net, data) and returns: net