docstr: Pad the layout element on the four sides of the polygon with the user-defined pixels. If
  safe_mode is set to True, the function will cut off the excess padding that falls on the negative
  side of the coordinates.
  
  Args:
      left (:obj:`int`, `optional`, defaults to 0): The number of pixels to pad on the upper side of the polygon.
      right (:obj:`int`, `optional`, defaults to 0): The number of pixels to pad on the lower side of the polygon.
      top (:obj:`int`, `optional`, defaults to 0): The number of pixels to pad on the left side of the polygon.
      bottom (:obj:`int`, `optional`, defaults to 0): The number of pixels to pad on the right side of the polygon.
      safe_mode (:obj:`bool`, `optional`, defaults to True): A bool value to toggle the safe_mode.
  
  Returns:
      :obj:`BaseCoordElement`: The padded BaseCoordElement object.
docstr_tok: ["Pad","the","layout","element","on","the","four","sides","of","the","polygon","with","the","user-defined","pixels",".","If","safe_mode","is","set","to","True",",","the","function","will","cut","off","the","excess","padding","that","falls","on","the","negative","side","of","the","coordinates",".","Args",":","left","(",":","obj",":","`","int","`",",","`","optional","`",",","defaults","to","0",")",":","The","number","of","pixels","to","pad","on","the","upper","side","of","the","polygon",".","right","(",":","obj",":","`","int","`",",","`","optional","`",",","defaults","to","0",")",":","The","number","of","pixels","to","pad","on","the","lower","side","of","the","polygon",".","top","(",":","obj",":","`","int","`",",","`","optional","`",",","defaults","to","0",")",":","The","number","of","pixels","to","pad","on","the","left","side","of","the","polygon",".","bottom","(",":","obj",":","`","int","`",",","`","optional","`",",","defaults","to","0",")",":","The","number","of","pixels","to","pad","on","the","right","side","of","the","polygon",".","safe_mode","(",":","obj",":","`","bool","`",",","`","optional","`",",","defaults","to","True",")",":","A","bool","value","to","toggle","the","safe_mode",".","Returns",":",":","obj",":","`","BaseCoordElement","`",":","The","padded","BaseCoordElement","object","."]
code: def pad(self, left=0, right=0, top=0, bottom=0, safe_mode=True):
      """Pad the layout element on the four sides of the polygon with the user-defined pixels. If
      safe_mode is set to True, the function will cut off the excess padding that falls on the negative
      side of the coordinates.
  
      Args:
          left (:obj:`int`, `optional`, defaults to 0): The number of pixels to pad on the upper side of the polygon.
          right (:obj:`int`, `optional`, defaults to 0): The number of pixels to pad on the lower side of the polygon.
          top (:obj:`int`, `optional`, defaults to 0): The number of pixels to pad on the left side of the polygon.
          bottom (:obj:`int`, `optional`, defaults to 0): The number of pixels to pad on the right side of the polygon.
          safe_mode (:obj:`bool`, `optional`, defaults to True): A bool value to toggle the safe_mode.
  
      Returns:
          :obj:`BaseCoordElement`: The padded BaseCoordElement object.
      """
  
      pass
  
imports: from typing import List, Dict, Dict, Any
  from abc import ABC, abstractmethod
  from copy import copy
label_desc: Use image node_id 13 for calling the BaseCoordElement obj's underlying member method code with example usage: obj.pad(left, right, top, bottom, safe_mode) without return types