class_docstr: These tests check that a ValueError is called
  for non-existent loss functions.
  They also check that suggestions are returned
  if the name is close to a real one.
code: def test_suggestion_for_dice_typo(self):
      with self.cached_session():
          with self.assertRaisesRegexp(ValueError, "CrossEntropy"):
              LossFunction(0, loss_type="cross_entropy")
  
file_path: NiftyNet/tests/loss_classification_test.py
imports: from __future__ import absolute_import, print_function
  import numpy
  import tensorflow
  from niftynet.layer.loss_classification import LossFunction
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 2 for calling the LossFunctionErrorsTest obj's underlying member method code with example usage: obj.test_suggestion_for_dice_typo() without return types