code: def vecdot(x, y, *, dim=-1, out=None):
      if "complex" in ivy.as_ivy_dtype(x.dtype):
          x = ivy.conj(x)
      return ivy.sum(ivy.multiply(x, y), axis=dim)
  
imports: import math
  import ivy
  import ivy.functional.frontends.torch
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
  from collections import namedtuple
label_desc: Use image node_id 32 for calling a global function with example usage: vecdot(x, y) and returns: ivy