class_docstr: Sub class of DataContainer to expand data container dimension.
  This is akin from passing from `shape` to `[1, *shape]`
  when using :func:`ExpandedDataContainer.create_from`.
  
  .. seealso::
      :class:`DataContainer`
class_docstr_tok: ["Sub","class","of","DataContainer","to","expand","data","container","dimension",".","This","is","akin","from","passing","from","`","shape","`","to","`","[","1",",","*","shape","]","`","when","using",":","func",":","`","ExpandedDataContainer.create_from","`",".","..","seealso",":",":",":","class",":","`","DataContainer","`"]
docstr: Reduce DataContainer to its original shape with a list of multiple ids, data_inputs, and expected outputs.
  
  :return: reduced data container
  :rtype: DataContainer
docstr_tok: ["Reduce","DataContainer","to","its","original","shape","with","a","list","of","multiple","ids",",","data_inputs",",","and","expected","outputs",".",":","return",":","reduced","data","container",":","rtype",":","DataContainer"]
code: def reduce_dim(self) -> "DACT":
      """
      Reduce DataContainer to its original shape with a list of multiple ids, data_inputs, and expected outputs.
  
      :return: reduced data container
      :rtype: DataContainer
      """
      if len(self.data_inputs) != 1:
          raise ValueError(
              "Invalid Expanded Data Container. Please create ExpandedDataContainer with ExpandedDataContainer.create_from(data_container) method."
          )
  
      return DACT(
          ids=self._old_ids,
          data_inputs=self.data_inputs[0]
          if self.data_inputs is not None
          else None,
          expected_outputs=self.expected_outputs[0]
          if self.expected_outputs is not None
          else None,
          sub_data_containers=self.sub_data_containers,
      )
  
imports: import copy
  import math
  from operator import attrgetter
  from typing import Any, Callable, Generic, Iterable, Iterator, List, Optional, Tuple, TypeVar, Union
  import numpy
  import pandas
label_desc: Use image node_id 3 for calling the ExpandedDataContainer obj's underlying member method code with example usage: obj.reduce_dim() and returns: DACT