class_docstr: Unit tests for the NNModifier class. 
class_docstr_tok: ["Unit","tests","for","the","NNModifier","class","."]
docstr: Tests the __call__ function with a single input of the modifier. 
docstr_tok: ["Tests","the","__call__","function","with","a","single","input","of","the","modifier","."]
code: def test_call_with_list(self):
      """Tests the __call__ function with a single input of the modifier."""
      self.report(
          "Testing the __call__ function with a list of inputs."
      )
      num_modifications = 40
      num_steps_probs = [0.5, 0.25, 0.125, 0.075, 0.05]
      save_dir = os.path.join(self.save_dir, "modifier_call_list")
      if os.path.exists(save_dir):
          rmtree(save_dir)
      test_probs = [
          self.cnns,
          self.mlps,
          generate_mlp_architectures("class"),
      ]
      for idx, prob in enumerate(test_probs):
          save_prefix = str(idx)
          modifier = self.modifier_wo_cc
          modifications = modifier(
              prob, num_modifications, num_steps_probs
          )
          for new_idx, new_nn in enumerate(modifications):
              assert isinstance(new_nn, NeuralNetwork)
              visualise_nn(
                  new_nn,
                  os.path.join(
                      save_dir, "%s_%d" % (save_prefix, new_idx)
                  ),
              )
          self.report(
              "With list of %d nns(%s):: #new-networks: %d."
              % (len(prob), prob[0].nn_class, len(modifications)),
              "test_result",
          )
  
imports: from copy import deepcopy
  import numpy
  import os
  from shutil import rmtree
  import unittest
  from .None import nn_domains
  from .None import nn_modifiers
  from .neural_network import NeuralNetwork
  from .nn_visualise import visualise_nn
  from .unittest_neural_network import generate_cnn_architectures, generate_mlp_architectures
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 7 for calling the NNModifierTestCase obj's underlying member method code with example usage: obj.test_call_with_list() without return types