code: def _convert_padding(
      inexpr, keras_layer, etab, data_layout, input_shape=None
  ):  # pylint: disable=unused-argument
      _check_data_format(keras_layer)
  
      padding_type = type(keras_layer).__name__
      padding = keras_layer.padding
      top = left = bottom = right = 0
      if padding_type == "ZeroPadding2D":
          if isinstance(padding, int):
              top = left = bottom = right = padding
          elif isinstance(padding, tuple):
              if isinstance(padding[0], int):
                  top, left = padding
                  bottom, right = padding
              elif isinstance(padding[0], tuple):
                  top, bottom = padding[0]
                  left, right = padding[1]
              else:
                  msg = (
                      f'Value {str(padding)} in attribute "padding" of operator Padding is '
                      f"not valid."
                  )
                  raise tvm.error.OpAttributeInvalid(msg)
          else:
              msg = f'Value {str(padding)} in attribute "padding" of operator Padding is not valid.'
              raise tvm.error.OpAttributeInvalid(msg)
      else:
          msg = f"Operator {padding_type} is not supported in frontend Keras."
          raise tvm.error.OpNotImplemented(msg)
      if data_layout == "NCHW":
          return _op.nn.pad(
              data=inexpr,
              pad_width=((0, 0), (0, 0), (top, bottom), (left, right)),
          )
      return _op.nn.pad(
          data=inexpr,
          pad_width=((0, 0), (top, bottom), (left, right), (0, 0)),
      )
  
imports: import dis
  import sys
  import numpy
  import tvm
  from tvm.ir import IRModule, TensorType, TupleType
  from ..None import analysis
  from ..None import expr
  from ..None import function
  from ..None import op
  from ...None import nd
  from .common import ExprTable, new_var
label_desc: Use image node_id 24 for calling a global function with example usage: _convert_padding(inexpr, keras_layer, etab, data_layout, input_shape) and returns: _op, _op