code: def _binary_neighbour_ids(spatial_rank):
      """
      returns combinatorial binary indices::
  
          1-D: [[0], [1]]
          2-D: [[0, 0], [0, 1], [1, 0], [1, 1]]
          3-D: [[0, 0, 0], [0, 0, 1], [0, 1, 0],
                [0, 1, 1], [1, 0, 0], [1, 0, 1],
                [1, 1, 0], [1, 1, 1]]
  
      """
      return [
          [int(c) for c in format(i, "0%ib" % spatial_rank)]
          for i in range(2**spatial_rank)
      ]
  
file_path: NiftyNet/niftynet/layer/resampler.py
imports: from __future__ import absolute_import, division, print_function
  import tensorflow
  from niftynet.layer.base_layer import Layer
  from niftynet.layer.layer_util import infer_spatial_rank
  from niftynet.utilities.util_common import look_up_operations
label_desc: Use image node_id 5 for calling a global function with example usage: _binary_neighbour_ids(spatial_rank) and returns: unknown