docstr: Tests the dot product function.
docstr_tok: ["Tests","the","dot","product","function","."]
code: def test_dot_random(self):
      """Tests the dot product function."""
      tensor_size = np.random.randint(2, 4)
      tensor_shape = np.random.randint(1, 10, size=tensor_size).tolist()
      axis = np.random.randint(tensor_size)
      u = np.random.random(size=tensor_shape)
      v = np.random.random(size=tensor_shape)
  
      dot = tf.linalg.tensor_diag_part(
          tf.tensordot(u, v, axes=[[axis], [axis]])
      )
      dot = tf.expand_dims(dot, axis=axis)
  
      self.assertAllClose(vector.dot(u, v, axis=axis), dot)
  
imports: from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.geometry.transformation.tests import test_data
  from tensorflow_graphics.math import vector
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 12 for calling the VectorTest obj's underlying member method code with example usage: obj.test_dot_random() without return types