code: def test_nn_errors_on_invalid_input_types():
      """Assert that TPOT will error if you pass unsupported inputs to an NN estimator. (NN)"""
      clf = nn.PytorchLRClassifier(num_epochs=1, batch_size=8)
      pd_target_str = pd.Series(repeat("foo", len(pd_target)))
      assert_raises(ValueError, clf.fit, pd_features, pd_target_str)
  
file_path: tpot/tests/nn_tests.py
imports: from tpot import TPOTClassifier
  from tpot.config import classifier_config_nn
  from tpot.builtins import nn
  import numpy
  import pandas
  from sklearn.datasets import make_classification
  from sklearn.model_selection import train_test_split
  from nose.tools import nottest, assert_raises
  from itertools import repeat
label_desc: Use image node_id 6 for calling a global function with example usage: test_nn_errors_on_invalid_input_types() without return types