code: def _reduce_memory_consumption_before_storing(
      possible_states: List[torch.Tensor],
  ):
      """Reduce the memory consumption before storing the states.
  
      Args:
          possible_states (List[torch.Tensor]): The possible states.
      """
      final_states = [state[:, 0:2] for state in possible_states]
      previous_actions = possible_states[0][:, 2:]
      storing_dict = {
          "final_states": final_states,
          "previous_actions": previous_actions,
      }
      return storing_dict
  
file_path: nebuly/optimization/open_alpha_tensor/open_alpha_tensor/core/actors/stage.py
imports: from typing import Dict, List
  import torch
  from open_alpha_tensor.core.data.utils import get_scalars, map_action_to_triplet
  from open_alpha_tensor.core.modules.alpha_tensor import AlphaTensorModel
label_desc: Use image node_id 4 for calling a global function with example usage: _reduce_memory_consumption_before_storing(possible_states) and returns: storing_dict