code: def dot(x, y, name=None):
      x, y = promote_types_of_paddle_inputs(x, y)
      out = ivy.multiply(x, y)
      return ivy.sum(out, axis=ivy.get_num_dims(x) - 1, keepdims=False)
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.paddle import promote_types_of_paddle_inputs
  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: dot(x, y, name) and returns: ivy