code: def center_pad(wstring, wtarget, fillchar=" "):
      """
      Return the padding strings necessary to center a string of
      wstring characters wide in a wtarget wide space.
  
      The line_width wstring should always be less or equal to wtarget
      or else a ValueError will be raised.
      """
      if wstring > wtarget:
          raise ValueError("not enough space for string")
      wdelta = wtarget - wstring
  
      wleft = wdelta // 2  # favor left '1 '
      wright = wdelta - wleft
  
      left = fillchar * wleft
      right = fillchar * wright
  
      return left, right
  
imports: import sys
  import warnings
  from string import ascii_lowercase, ascii_uppercase
  import unicodedata
  from sympy.printing.conventions import split_super_sub
  from sympy.core.alphabets import greeks
  from sympy.utilities.exceptions import sympy_deprecation_warning
label_desc: Use image node_id 16 for calling a global function with example usage: center_pad(wstring, wtarget, fillchar) and returns: left,  right