code: def _reduce_padding(padding, data_format):
      if not isinstance(padding, str):
          if data_format[1] == "C":
              padding = padding[2:]
          else:
              padding = padding[1:-1]
      return padding
  
imports: import ivy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.tensorflow import check_tensorflow_casting
label_desc: Use image node_id 2 for calling a global function with example usage: _reduce_padding(padding, data_format) and returns: padding