code: def test_get_boundary_locations():
      image_height = 11
      image_width = 11
      num_points_per_edge = 4
      locs = _get_boundary_locations(
          image_height, image_width, num_points_per_edge
      )
      num_points = locs.shape[0]
      assert num_points == (4 + 4 * num_points_per_edge)
      locs = [(locs[i, 0], locs[i, 1]) for i in range(num_points)]
      for i in (0, image_height - 1):
          for j in (0, image_width - 1):
              assert (i, j) in locs
  
          for i in (2, 4, 6, 8):
              for j in (0, image_width - 1):
                  assert (i, j) in locs
  
          for i in (0, image_height - 1):
              for j in (2, 4, 6, 8):
                  assert (i, j) in locs
  
file_path: addons/tensorflow_addons/image/tests/sparse_image_warp_test.py
imports: from collections import namedtuple
  import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.image import sparse_image_warp
  from tensorflow_addons.image.sparse_image_warp import _get_boundary_locations
  from tensorflow_addons.image.sparse_image_warp import _get_grid_locations
  from tensorflow_addons.utils.resource_loader import get_path_to_datafile
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_boundary_locations() without return types