class_docstr: Contains unit tests for the TransportNNDistanceComputer class. 
docstr: Tests the computation of the distance for CNNs. 
docstr_tok: ["Tests","the","computation","of","the","distance","for","CNNs","."]
code: def test_cnn_distance_computation(self):
      """Tests the computation of the distance for CNNs."""
      struct_coeffs = [0.1, 0.4]
      mislabel_coeffs = [1.0] * len(struct_coeffs)
      dist_types = ["lp-emd", "lp", "emd"]
      self.report(
          "Testing distance computation for specific cnns with default coeffs."
      )
      self._test_dist_comp_for_single_conn_coeff(
          self.cnns, dist_types, self.tp_comp
      )
      # With multiple conn_coeffs
      self.report(
          "Testing distance computation for specific cnns with conn_coeffs=%s."
          % (struct_coeffs)
      )
      self._test_dist_comp_for_multiple_coeffs(
          self.cnns,
          dist_types,
          mislabel_coeffs,
          struct_coeffs,
          self.tp_comp,
      )
  
imports: import numpy
  from .None import otmann
  from .unittest_neural_network import generate_cnn_architectures, generate_mlp_architectures
  from ..utils.ancillary_utils import get_list_of_floats_as_str
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 12 for calling the TransportNNDistanceComputerTestCase obj's underlying member method code with example usage: obj.test_cnn_distance_computation() without return types