class_docstr: Unit tests for the NNModifier class. 
class_docstr_tok: ["Unit","tests","for","the","NNModifier","class","."]
docstr: Returns modifier for the neural network nn.
docstr_tok: ["Returns","modifier","for","the","neural","network","nn","."]
code: def _get_modifier_and_cc(self, nn):
      """Returns modifier for the neural network nn."""
      if nn.nn_class == "cnn":
          modifier = self.cnn_modifier
          constraint_checker = self.cnn_constraint_checker
      else:
          modifier = self.mlp_modifier
          constraint_checker = self.mlp_constraint_checker
      return modifier, constraint_checker
  
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 2 for calling the NNModifierTestCase obj's underlying member method code with example usage: obj._get_modifier_and_cc(nn) and returns: modifier,  constraint_checker