code: def test_dot_autograd():
      x = np.array([1.0, 2.0], requires_grad=False)
      y = np.array([2.0, 3.0], requires_grad=True)
  
      res = fn.dot(x, y)
      assert isinstance(res, np.tensor)
      assert res.requires_grad
      assert fn.allclose(res, 8)
  
      assert fn.allclose(qml_grad(fn.dot)(x, y), x)
  
imports: import autoray
  import numpy
  import pytest
  import scipy
  from autoray import numpy
  from pennylane import math
  from pennylane import numpy
  from pennylane import grad
label_desc: Use image node_id 9 for calling a global function with example usage: test_dot_autograd() without return types