class_docstr: Converter for images
class_docstr_tok: ["Converter","for","images"]
docstr: Just pad orig image to larger size if desired size is larger.
docstr_tok: ["Just","pad","orig","image","to","larger","size","if","desired","size","is","larger","."]
code: def _pad_to_larger_size(self):
      """Just pad orig image to larger size if desired size is larger."""
      offset = (
          int(round((self._desired_size[0]) / 2)),
          int(round((self._desired_size[1]) / 2)),
      )
      bkgd_img = Image.new(
          self._bg_mode, self._desired_size, self._bg_color
      )
      bkgd_img.paste(self._orig_img, offset)
      return bkgd_img
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl import logging
  from PIL import Image
  from PIL import ImageOps
label_desc: Use image node_id 5 for calling the ImageConverter obj's underlying member method code with example usage: obj._pad_to_larger_size() and returns: bkgd_img