code: def from_vector_to_diagonal_matrix_test_data(self):
      data = [
          dict(
              vector=gs.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]),
              num_diag=0,
              expected=gs.array(
                  [
                      [
                          [1.0, 0.0, 0.0],
                          [0.0, 2.0, 0.0],
                          [0.0, 0.0, 3.0],
                      ],
                      [
                          [4.0, 0.0, 0.0],
                          [0.0, 5.0, 0.0],
                          [0.0, 0.0, 6.0],
                      ],
                  ]
              ),
          ),
          dict(
              vector=gs.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]),
              num_diag=1,
              expected=gs.array(
                  [
                      [
                          [0.0, 1.0, 0.0, 0.0],
                          [0.0, 0.0, 2.0, 0.0],
                          [0.0, 0.0, 0.0, 3.0],
                          [0.0, 0.0, 0.0, 0.0],
                      ],
                      [
                          [0.0, 4.0, 0.0, 0.0],
                          [0.0, 0.0, 5.0, 0.0],
                          [0.0, 0.0, 0.0, 6.0],
                          [0.0, 0.0, 0.0, 0.0],
                      ],
                  ]
              ),
          ),
          dict(
              vector=gs.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]),
              num_diag=-1,
              expected=gs.array(
                  [
                      [
                          [0.0, 0.0, 0.0, 0.0],
                          [1.0, 0.0, 0.0, 0.0],
                          [0.0, 2.0, 0.0, 0.0],
                          [0.0, 0.0, 3.0, 0.0],
                      ],
                      [
                          [0.0, 0.0, 0.0, 0.0],
                          [4.0, 0.0, 0.0, 0.0],
                          [0.0, 5.0, 0.0, 0.0],
                          [0.0, 0.0, 6.0, 0.0],
                      ],
                  ]
              ),
          ),
      ]
      return self.generate_tests(data)
  
file_path: geomstats/tests/tests_geomstats/data/algebra_utils.py
imports: import math
  import random
  import geomstats.algebra_utils
  import geomstats.backend
  from geomstats.test.data import TestData
label_desc: Use image node_id 2 for calling the AlgebraUtilsTestData obj's underlying member method code with example usage: obj.from_vector_to_diagonal_matrix_test_data() and returns: self