code: def zeropad2d(x, padding, data_format="NCHW", name=None):
      if ivy.is_array(padding):
          padding = padding.to_list()
      if isinstance(padding, int):
          padding = [padding, padding, padding, padding]
      if len(padding) != 4:
          raise ValueError("Padding length should be 4.")
      if x.ndim != 4:
          raise ValueError("Input x must be 4-dimensional.")
      if data_format == "NCHW":
          padding = (
              (0, 0),
              (0, 0),
              (padding[2], padding[3]),
              (padding[0], padding[1]),
          )
      elif data_format == "NHWC":
          padding = (
              (0, 0),
              (padding[2], padding[3]),
              (padding[0], padding[1]),
              (0, 0),
          )
      else:
          raise ValueError(f"Unknown data_format: {data_format}")
      return ivy.pad(x, padding, mode="constant", constant_values=0.0)
  
file_path: ivy/ivy/functional/frontends/paddle/nn/functional/common.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 9 for calling a global function with example usage: zeropad2d(x, padding, data_format, name) and returns: ivy