code: def __test_boundary_term_2d(self, term, term_args):
      graph = graph_from_voxels(
          self.fgmarkers,
          self.bgmarkers,
          boundary_term=term,
          boundary_term_args=term_args,
      )
      result = self.__execute(graph, self.image)
      assert_array_equal(result, self.result)
  
imports: import unittest
  import numpy
  from numpy.testing import assert_array_equal
  from medpy.graphcut import graph_from_voxels
  from medpy.graphcut.energy_voxel import boundary_difference_linear, boundary_difference_exponential, boundary_difference_division, boundary_difference_power, boundary_maximum_linear, boundary_maximum_exponential, boundary_maximum_division, boundary_maximum_power, regional_probability_map
label_desc: Use image node_id 14 for calling the TestEnergyVoxel obj's underlying member method code with example usage: obj.__test_boundary_term_2d(term, term_args) without return types