code: def conv3d(
      input,
      weight,
      bias=None,
      stride=1,
      pad_mode="valid",
      padding=0,
      dilation=1,
      groups=1,
  ):
      if pad_mode in ["valid", "same"]:
          padding = pad_mode
      elif pad_mode == "pad":
          padding = padding
      else:
          raise NotImplementedError(
              f"pad_mode {pad_mode} not implemented"
          )
      return _conv(
          input, weight, bias, stride, padding, dilation, groups
      )
  
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
  from ivy.functional.ivy.experimental.layers import _broadcast_pooling_helper
label_desc: Use image node_id 7 for calling a global function with example usage: conv3d(input, weight, bias, stride, pad_mode, padding, dilation, groups) and returns: _conv