code: def to_weld_vec(weld_type, ndim):
      
      for i in range(ndim):
          weld_type = WeldVec(weld_type)
      return weld_type
docs: Convert multi-dimensional data to WeldVec types.
  
      Parameters
      ----------
      weld_type : WeldType
          WeldType of data.
      ndim : int
          Number of dimensions.
  
      Returns
      -------
      WeldVec
          WeldVec of 1 or more dimensions.