docstr: Test pad for border cases in 3D
code: def test_pad_bordercases(self):
      "Test pad for border cases in 3D"
      input = numpy.ones((3, 3, 3))
  
      # no padding in all dimensions
      pad(input=input, size=1, mode="reflect")
      pad(input=input, size=1, mode="mirror")
      pad(input=input, size=1, mode="constant")
      pad(input=input, size=1, mode="nearest")
      pad(input=input, size=1, mode="wrap")
  
      # no padding in one dimension
      pad(input=input, size=(1, 2, 2), mode="reflect")
      pad(input=input, size=(1, 2, 2), mode="mirror")
      pad(input=input, size=(1, 2, 2), mode="constant")
      pad(input=input, size=(1, 2, 2), mode="nearest")
      pad(input=input, size=(1, 2, 2), mode="wrap")
  
      # same size as image
      pad(input=input, size=3, mode="reflect")
      pad(input=input, size=3, mode="mirror")
      pad(input=input, size=3, mode="constant")
      pad(input=input, size=3, mode="nearest")
      pad(input=input, size=3, mode="wrap")
  
      # bigger than image
      pad(input=input, size=4, mode="reflect")
      pad(input=input, size=4, mode="mirror")
      pad(input=input, size=4, mode="constant")
      pad(input=input, size=4, mode="nearest")
      pad(input=input, size=4, mode="wrap")
  
file_path: medpy/tests/filter_/utilities.py
imports: import unittest
  import numpy
  from medpy.filter import pad
label_desc: Use image node_id 2 for calling the TestUtilities obj's underlying member method code with example usage: obj.test_pad_bordercases() without return types