parameters: (values: tuple or list, dim: Shape)
return_statement: return result
docstring: Lazy stack.
      Stacks `values` along the new dimension `dim`.
  
      Args:
          values: Sequence of `Tensor` objects to be stacked.
          dim: Single-dimension `Shape`. This dimension must not be present with any of the `values`.
              The size along `dim` is determined from `len(values)` and can be set to undefined (`None`).
  
      Returns:
          `Tensor` containing `values` stacked along `dim`.
docstring_summary: Lazy stack.
      Stacks `values` along the new dimension `dim`.
docstring_tokens: Lazy stack . Stacks values along the new dimension dim .
function: def stack(values: tuple or list, dim: Shape):
      """
      Lazy stack.
      Stacks `values` along the new dimension `dim`.
  
      Args:
          values: Sequence of `Tensor` objects to be stacked.
          dim: Single-dimension `Shape`. This dimension must not be present with any of the `values`.
              The size along `dim` is determined from `len(values)` and can be set to undefined (`None`).
  
      Returns:
          `Tensor` containing `values` stacked along `dim`.
      """
      values = cast_same(*values)
  
      def inner_stack(*values):
          return TensorStack(values, dim)
  
      result = broadcast_op(inner_stack, values)
      return result
function_tokens: def stack ( values : tuple or list , dim : Shape ) : values = cast_same ( * values ) def inner_stack ( * values ) : return TensorStack ( values , dim ) result = broadcast_op ( inner_stack , values ) return result