code: def vecdot(
      x1: np.ndarray,
      x2: np.ndarray,
      /,
      *,
      axis: int = -1,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      x1, x2 = ivy.promote_types_of_inputs(x1, x2)
      return np.tensordot(x1, x2, axes=(axis, axis))
  
imports: from collections import namedtuple
  from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence
  import numpy
  import ivy
  from ivy import inf
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
  from .None import backend_version
label_desc: Use image node_id 24 for calling a global function with example usage: vecdot() and returns: np