class_docstr: Contains unit tests for the TransportNNDistanceComputer class. 
docstr: Returns true if it is the cost matrix for the same network. 
docstr_tok: ["Returns","true","if","it","is","the","cost","matrix","for","the","same","network","."]
code: def _is_cost_matrix_for_same_networks(cls, cost_matrix):
      """Returns true if it is the cost matrix for the same network."""
      return np.all(np.diag(cost_matrix) == 0) and np.all(
          cost_matrix == cost_matrix.T
      )
  
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 4 for calling the TransportNNDistanceComputerTestCase obj's underlying member method code with example usage: obj._is_cost_matrix_for_same_networks(cls, cost_matrix) and returns: unknown