code: def pad_data(self, data, pad_dimensions):
      # Maybe more effecient than np.pad? Created for testing a different purpose.
  
      for idx, width in enumerate(pad_dimensions):
          pad_block_1, pad_block_2 = list(data.shape), list(data.shape)
          pad_block_1[idx] = width[0]
          pad_block_2[idx] = width[1]
          data = np.concatenate(
              (np.zeros(pad_block_1), data, np.zeros(pad_block_2)),
              axis=idx,
          )
  
      return data
  
file_path: DeepNeuro/deepneuro/outputs/segmentation.py
imports: import numpy
  from deepneuro.outputs.inference import ModelInference
  from deepneuro.utilities.util import add_parameter, docker_print
label_desc: Use image node_id 6 for calling the PatchesInference obj's underlying member method code with example usage: obj.pad_data(data, pad_dimensions) and returns: data