






'''simple docstring'''







from __future__ import annotations

from typing import Any





def 			SCREAMING_SNAKE_CASE_	(UpperCamelCase				)				->	None:
							create_state_space_tree(UpperCamelCase    ,      []    ,      0				)





def 			SCREAMING_SNAKE_CASE_	(UpperCamelCase    ,      UpperCamelCase    ,      UpperCamelCase				)				->	None:

							if index == len(UpperCamelCase				):
														print(UpperCamelCase				)
														return

							create_state_space_tree(UpperCamelCase    ,      UpperCamelCase    ,      index + 1				)
							current_subsequence.append(sequence[index]				)
							create_state_space_tree(UpperCamelCase    ,      UpperCamelCase    ,      index + 1				)
							current_subsequence.pop()


if __name__ == "__main__":
			_A     :      list[Any]   					=[3, 1, 2, 4]
			generate_all_subsequences(seq)

			seq.clear()
			seq.extend(['''A''', '''B''', '''C'''])
			generate_all_subsequences(seq)













'''simple docstring'''







from torch import nn





def 			SCREAMING_SNAKE_CASE_	(UpperCamelCase				)				->	Dict:
							if act_fn in ["swish", "silu"]:
														return nn.SiLU()
							elif act_fn == "mish":
														return nn.Mish()
							elif act_fn == "gelu":
														return nn.GELU()
							else:
														raise ValueError(f'''Unsupported activation function: {act_fn}'''				)

